diff options
Diffstat (limited to 'common/pybindings.cc')
-rw-r--r-- | common/pybindings.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/pybindings.cc b/common/pybindings.cc index 8f824f1e..0f5780b5 100644 --- a/common/pybindings.cc +++ b/common/pybindings.cc @@ -88,7 +88,8 @@ PYBIND11_MODULE(MODULE_NAME, m) { py::register_exception_translator([](std::exception_ptr p) { try { - if (p) std::rethrow_exception(p); + if (p) + std::rethrow_exception(p); } catch (const assertion_failure &e) { PyErr_SetString(PyExc_AssertionError, e.what()); } |