From 3111cf56de6100932f299c879fce6dad92650c4e Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Fri, 22 Dec 2023 07:40:31 -0800 Subject: [PATCH] Fixed EM102 (f-string-in-exception): Exception must not use an f-string literal, assign to variable first --- management/backup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/management/backup.py b/management/backup.py index 93744d7d..13ff4a44 100755 --- a/management/backup.py +++ b/management/backup.py @@ -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