1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-01-23 12:37:05 +00:00

Fixed RET506 (superfluous-else-raise): Unnecessary elif after raise statement

This commit is contained in:
Teal Dulcet 2025-01-08 05:22:12 -08:00
parent 1efb5d5c99
commit c357fe83d2

View File

@ -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