Skip to content

Commit a501abb

Browse files
committed
Fix exception message
1 parent d797bc1 commit a501abb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_backend_agg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,7 +2408,7 @@ RendererAgg::tostring_rgba_minimized(const Py::Tuple& args)
24082408
data = PyBytes_FromStringAndSize(NULL, newsize);
24092409
if (data == NULL)
24102410
{
2411-
throw Py::MemoryError("RendererAgg::tostring_minimized could not allocate memory");
2411+
throw Py::MemoryError("RendererAgg::tostring_rgba_minimized could not allocate memory");
24122412
}
24132413
dst = (unsigned int *)PyBytes_AsString(data);
24142414

@@ -2424,7 +2424,7 @@ RendererAgg::tostring_rgba_minimized(const Py::Tuple& args)
24242424
data = PyBytes_FromStringAndSize(NULL, 0);
24252425
if (data == NULL)
24262426
{
2427-
throw Py::MemoryError("RendererAgg::tostring_minimized could not allocate memory");
2427+
throw Py::MemoryError("RendererAgg::tostring_rgba_minimized could not allocate memory");
24282428
}
24292429
}
24302430

0 commit comments

Comments
 (0)