• Bram Schoenmakers's avatar
    Use raise ... from syntax to link exceptions · 75ee98ac
    Bram Schoenmakers authored
    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.
    75ee98ac
Command.py 3.01 KB