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:
parent
6508d47da1
commit
3111cf56de
@ -491,7 +491,8 @@ def list_target_files(config):
|
|||||||
reason = "Unknown error." \
|
reason = "Unknown error." \
|
||||||
"Please check running 'management/backup.py --verify'" \
|
"Please check running 'management/backup.py --verify'" \
|
||||||
"from mailinabox sources to debug the issue."
|
"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":
|
elif target.scheme == "s3":
|
||||||
import boto3.s3
|
import boto3.s3
|
||||||
|
Loading…
Reference in New Issue
Block a user