Good call. ValueError exception seems right at the Python level. fixed.