Skip to content

Commit a4e57e2

Browse files
committed
Improve exception error message when converting Python bounding box to C++
svn path=/trunk/matplotlib/; revision=8805
1 parent acfa6a1 commit a4e57e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agg_py_transforms.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ py_convert_bbox(PyObject* bbox_obj, double& l, double& b, double& r, double& t)
7777
if (!bbox || PyArray_NDIM(bbox) != 2 || PyArray_DIM(bbox, 0) != 2 || PyArray_DIM(bbox, 1) != 2)
7878
{
7979
throw Py::TypeError
80-
("Argument 3 to agg_to_gtk_drawable must be a Bbox object.");
80+
("Expected a bbox array");
8181
}
8282

8383
l = *(double*)PyArray_GETPTR2(bbox, 0, 0);

0 commit comments

Comments
 (0)