Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b9db1bd

Browse files
committed
Clean up error message.
svn path=/trunk/matplotlib/; revision=4315
1 parent c63145d commit b9db1bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/_backend_agg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2294,7 +2294,7 @@ RendererAgg::write_png(const Py::Tuple& args)
22942294
if ((fp = PyFile_AsFile(py_fileobj.ptr())) == NULL) {
22952295
PyObject* write_method = PyObject_GetAttrString(py_fileobj.ptr(), "write");
22962296
if (!(write_method && PyCallable_Check(write_method)))
2297-
throw Py::TypeError("Object does not appear to be a Python file-like object");
2297+
throw Py::TypeError("Object does not appear to be a path or a Python file-like object");
22982298
}
22992299
}
23002300

0 commit comments

Comments
 (0)