mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-08 16:27:24 +01:00
Fixed RET506 (superfluous-else-raise): Unnecessary elif after raise statement
This commit is contained in:
@@ -499,7 +499,7 @@ def list_target_files(config):
|
|||||||
msg = f"Connection to rsync host failed: {reason}"
|
msg = f"Connection to rsync host failed: {reason}"
|
||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
|
|
||||||
elif target.scheme == "s3":
|
if target.scheme == "s3":
|
||||||
import boto3.s3
|
import boto3.s3
|
||||||
from botocore.exceptions import ClientError
|
from botocore.exceptions import ClientError
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user