Use raise ... from syntax to link exceptions
Python handles one exception at a time (per thread), raising a new exception while still handling another one will result in run-time errors. By linking the second exception to the original one, Python will handle it correctly. This was encountered while developing the alternative column UI, which bailed out on completing a todo item with (invalid) child todo items.
Showing
Please register or sign in to comment