Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitd6661f9

Browse files
committed
Restore better error message on std::runtime_error.
1 parent89183ba commitd6661f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎src/py_exceptions.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ class exception : public std::exception
3838
} \
3939
return (errorcode); \
4040
} \
41+
catch (const std::runtime_error &e) \
42+
{ \
43+
PyErr_Format(PyExc_OverflowError,"In %s: %s", (name), e.what()); \
44+
{ \
45+
cleanup; \
46+
} \
47+
return (errorcode); \
48+
} \
4149
catch (const std::overflow_error &e) \
4250
{ \
4351
PyErr_Format(PyExc_OverflowError,"In %s: %s", (name), e.what()); \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp