Skip to content

Commit

Permalink
actaully chain the inner exception
Browse files Browse the repository at this point in the history
  • Loading branch information
yrro committed Mar 18, 2024
1 parent 71f20f0 commit 176dc85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class plugin_slow_raising_exception(Plugin):
def check(self):
try:
time.sleep(5)
except Exception:
raise Exception("I didn't expect an exception to be thrown")
except Exception as e:
raise Exception("I didn't expect an exception to be thrown") from e

class plugin_fast(Plugin):
def check(self):
Expand Down

0 comments on commit 176dc85

Please sign in to comment.