Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 132200d

Browse filesBrowse files
authored
Merge pull request #9310 from matplotlib/auto-backport-of-pr-9299
Backport PR #9299 on branch v2.1.x
2 parents 9d88b8c + f2bb53c commit 132200d
Copy full SHA for 132200d

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed

‎src/py_exceptions.h

Copy file name to clipboardExpand all lines: src/py_exceptions.h
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ class exception : public std::exception
4646
} \
4747
return (errorcode); \
4848
} \
49+
catch (const std::runtime_error &e) \
50+
{ \
51+
PyErr_Format(PyExc_RuntimeError, "In %s: %s", (name), e.what()); \
52+
{ \
53+
cleanup; \
54+
} \
55+
return (errorcode); \
56+
} \
4957
catch (...) \
5058
{ \
5159
PyErr_Format(PyExc_RuntimeError, "Unknown exception in %s", (name)); \

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.