mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +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." \
|
||||
"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
|
||||
|
Loading…
Reference in New Issue
Block a user