From 176dc85531f005880a59c275af8a96bc2f8c78c4 Mon Sep 17 00:00:00 2001 From: Sam Morris Date: Mon, 18 Mar 2024 19:41:30 +0000 Subject: [PATCH] actaully chain the inner exception --- tests/test_plugins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):