aboutsummaryrefslogtreecommitdiffstats
path: root/common/pybindings.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/pybindings.cc')
-rw-r--r--common/pybindings.cc3
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());
}