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 35045ee commit b3e190cCopy full SHA for b3e190c
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(), m_type.ptr()); }
+ bool matches(handle exc) const { return PyErr_GivenExceptionMatches(m_type.ptr(), exc.ptr()); }
348
349
const object& type() const { return m_type; }
350
const object& value() const { return m_value; }
0 commit comments