Skip to content

Commit 08c6b0d

Browse files
committed
Update packages/modules/backup_clouds/samba/backup_cloud.py
1 parent 0fe0302 commit 08c6b0d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/modules/backup_clouds/samba/backup_cloud.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ def upload_backup(config: SambaBackupCloudConfiguration, backup_filename: str, b
3434

3535
# Pfad prüfen
3636
if re.search(r'[\\\:\*\?\"\<\>\|]+', config.smb_path):
37-
log.warning("Ungültige Zeichen im Pfad.")
38-
log.warning("Sicherung nicht erfolgreich.")
39-
return
37+
raise Exception("Ungültige Zeichen im Pfad. Sicherung nicht erfolgreich.")
4038

4139
# ------------------------------------------------------------
4240
# 1) SMB2/3 über Port 445 testen

0 commit comments

Comments
 (0)