Skip to content

Commit

Permalink
Fixing invocations of py::error_already_set getters, after rebasing o…
Browse files Browse the repository at this point in the history
…nto a sightly different version of those getters got merged into master
  • Loading branch information
YannickJadoul committed May 12, 2019
1 parent 7174c5a commit 92c38ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/pybind11/pybind11.h
Original file line number Diff line number Diff line change
Expand Up @@ -1912,9 +1912,9 @@ void with(const object &mgr, Block &&block, with_exception_policy policy = with_
}
catch (const error_already_set &e) {
// A Python error
auto exit_result = exit(e.get_type() ? e.get_type() : none(),
e.get_value() ? e.get_value() : none(),
e.get_trace() ? e.get_trace() : none());
auto exit_result = exit(e.type() ? e.type() : none(),
e.value() ? e.value() : none(),
e.trace() ? e.trace() : none());
if (!bool_(std::move(exit_result)))
std::rethrow_exception(original_exception);
}
Expand Down

0 comments on commit 92c38ac

Please sign in to comment.