1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00

Fixed EM102 (f-string-in-exception): Exception must not use an f-string literal, assign to variable first

This commit is contained in:
Teal Dulcet 2025-03-21 05:20:37 -07:00
parent 542835655f
commit 5afb9ab893

View File

@ -199,7 +199,8 @@ def run_test(testfunc, args, count, within_seconds, parallel):
# Did we make enough requests within the limit?
if (time.time()-start_time) > within_seconds:
raise Exception(f"Test failed to make {count} requests in {within_seconds:d} seconds.")
msg = f"Test failed to make {count} requests in {within_seconds:d} seconds."
raise Exception(msg)
# Wait a moment for the block to be put into place.
time.sleep(4)