Skip to content

Commit bd5945a

Browse files
Copilothaochengxia
andcommitted
Initial exploration and build validation - fixed pybind11 compatibility issue
Co-authored-by: haochengxia <[email protected]>
1 parent 0769c1f commit bd5945a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/exception.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ void register_exception(py::module& m) {
2121
try {
2222
if (p) std::rethrow_exception(p);
2323
} catch (const CacheException& e) {
24-
py::set_error(exc_cache, e.what());
24+
exc_cache(e.what());
2525
} catch (const ReaderException& e) {
26-
py::set_error(exc_reader, e.what());
26+
exc_reader(e.what());
2727
}
2828
});
2929

0 commit comments

Comments
 (0)