Fix the exception handling
This commit is contained in:
parent
5814af3960
commit
a1349f9bc9
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue