Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MINIFICPP-2487 - Destroy PyException while holding GIL #1891

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions extensions/python/PythonScriptEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class PythonScriptEngine {
if (auto item = bindings_[fn_name]) {
auto result = BorrowedCallable(*item)(std::forward<Args>(args)...);
if (!result) {
throw PyException();
throw PythonScriptException(PyException().what());
}
return result;
} else {
Expand Down Expand Up @@ -136,7 +136,7 @@ class PythonScriptEngine {

auto result = callable_method(std::forward<Args>(args)...);
if (!result) {
throw PyException();
throw PythonScriptException(PyException().what());
}
return result;
}
Expand Down