We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25abf7e commit 8d33c94Copy full SHA for 8d33c94
include/pybind11/pytypes.h
@@ -344,7 +344,7 @@ class error_already_set : public std::runtime_error {
344
/// Check if the currently trapped error type matches the given Python exception class (or a
345
/// subclass thereof). May also be passed a tuple to search for any exception class matches in
346
/// the given tuple.
347
- bool matches(handle ex) const { return PyErr_GivenExceptionMatches(ex.ptr(), type.ptr()); }
+ bool matches(handle exc) const { return PyErr_GivenExceptionMatches(type.ptr(), exc.ptr()); }
348
349
private:
350
object type, value, trace;
0 commit comments