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 0769c1f commit bd5945aCopy full SHA for bd5945a
src/exception.cpp
@@ -21,9 +21,9 @@ void register_exception(py::module& m) {
21
try {
22
if (p) std::rethrow_exception(p);
23
} catch (const CacheException& e) {
24
- py::set_error(exc_cache, e.what());
+ exc_cache(e.what());
25
} catch (const ReaderException& e) {
26
- py::set_error(exc_reader, e.what());
+ exc_reader(e.what());
27
}
28
});
29
0 commit comments