1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-23 02:27: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 2023-12-22 07:40:31 -08:00 committed by Joshua Tauberer
parent 6508d47da1
commit 3111cf56de

View File

@ -491,7 +491,8 @@ def list_target_files(config):
reason = "Unknown error." \
"Please check running 'management/backup.py --verify'" \
"from mailinabox sources to debug the issue."
raise ValueError(f"Connection to rsync host failed: {reason}")
msg = f"Connection to rsync host failed: {reason}"
raise ValueError(msg)
elif target.scheme == "s3":
import boto3.s3