MO-RISE / pycluon

A python wrapper around libcluon
Apache License 2.0
2 stars 2 forks source link

Callbacks does not propagate exceptions (swallowed by `libcluon`) #4

Open freol35241 opened 3 years ago

freol35241 commented 3 years ago

Callbacks are noexcept in C++, this does not give nice error ouputs/tracebacks in python. Should use lambdas in wrapper code, see https://pybind11.readthedocs.io/en/stable/advanced/exceptions.html#handling-unraisable-exceptions

freol35241 commented 3 years ago

Actually, this needs some further thinking since libcluon "swallows" all exceptions on the C++ side generated by callbacks.