From a1349f9bc9ab691363d652a506eca3bd3b1be593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 30 Apr 2023 19:08:02 +0200 Subject: [PATCH] Fix the exception handling --- tests/start_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)