diff --git a/tests/start_test.py b/tests/start_test.py index 000c7ec..d618eca 100755 --- a/tests/start_test.py +++ b/tests/start_test.py @@ -175,9 +175,9 @@ def start_tests(test_dir, smtp_port, canonicalization): for test_msg in glob.iglob(f"{test_dir}/*.msg"): nb_total += 1 nb += send_msg(smtp_session, test_msg) - except e: + except Exception: kill_opensmtpd(pid_smtpd) - raise e + raise finally: os.remove(f) os.remove(d)