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
1 changed files with 2 additions and 1 deletions

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