Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c63145d commit b9db1bdCopy full SHA for b9db1bd
1 file changed
src/_backend_agg.cpp
@@ -2294,7 +2294,7 @@ RendererAgg::write_png(const Py::Tuple& args)
2294
if ((fp = PyFile_AsFile(py_fileobj.ptr())) == NULL) {
2295
PyObject* write_method = PyObject_GetAttrString(py_fileobj.ptr(), "write");
2296
if (!(write_method && PyCallable_Check(write_method)))
2297
- throw Py::TypeError("Object does not appear to be a Python file-like object");
+ throw Py::TypeError("Object does not appear to be a path or a Python file-like object");
2298
}
2299
2300
0 commit comments