From c357fe83d2276e1fe9c3e03e549114c36e983c42 Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Wed, 8 Jan 2025 05:22:12 -0800 Subject: [PATCH] Fixed RET506 (superfluous-else-raise): Unnecessary `elif` after `raise` statement --- management/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/backup.py b/management/backup.py index d06a6c8a..b7a23c25 100755 --- a/management/backup.py +++ b/management/backup.py @@ -499,7 +499,7 @@ def list_target_files(config): msg = f"Connection to rsync host failed: {reason}" raise ValueError(msg) - elif target.scheme == "s3": + if target.scheme == "s3": import boto3.s3 from botocore.exceptions import ClientError