Commit e3bbe481 authored by Mark Florisson's avatar Mark Florisson

Clear exception after failed lookup of __pyx_get/releasebuffer capsule

parent 582eb92d
...@@ -134,6 +134,8 @@ static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view, int flags) { ...@@ -134,6 +134,8 @@ static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view, int flags) {
goto fail; goto fail;
return func(obj, view, flags); return func(obj, view, flags);
} else {
PyErr_Clear();
} }
#endif #endif
...@@ -182,6 +184,8 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { ...@@ -182,6 +184,8 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) {
func(obj, view); func(obj, view);
return; return;
} else {
PyErr_Clear();
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment