All built-in, non-system-exiting exceptions are derived from this class. All user-defined exceptions should also be derived from this class.
This caused me troubles when using brightway calculation in a huey task because it expects an Exception, not a BaseException, so the worker dies and task never ends. I could workaround it with a try / except and wrapping the original brigthway exception in an Exception.
In
errors.py
As stated in python documentation,
This caused me troubles when using brightway calculation in a huey task because it expects an Exception, not a BaseException, so the worker dies and task never ends. I could workaround it with a try / except and wrapping the original brigthway exception in an
Exception
.