diff --git a/tests/test_plugins.py b/tests/test_plugins.py index e21c84a..ce1fc02 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -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):