Skip to content

Commit

Permalink
Merge pull request #847 from enthought/maint-move-raise-down
Browse files Browse the repository at this point in the history
Raise exception after resetting exception hooks
  • Loading branch information
kitchoi authored May 28, 2020
2 parents 91bd34e + a3f722c commit 64790f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions traitsui/tests/_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ def handle_exception(object, trait_name, old, new):
traits.trait_notifiers.handle_exception = handle_exception
yield
finally:
if len(exceptions) > 0:
raise exceptions[0]
sys.excepthook = sys.__excepthook__
traits.trait_notifiers.handle_exception = _original_handle_exception
if len(exceptions) > 0:
raise exceptions[0]


def _is_current_backend(backend_name=""):
Expand Down

0 comments on commit 64790f1

Please sign in to comment.