Skip to content

Commit 014b727

Browse files
authored
Update packages/modules/backup_clouds/samba/backup_cloud.py
1 parent 0fe0302 commit 014b727

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/modules/backup_clouds/samba/backup_cloud.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ def upload_backup(config: SambaBackupCloudConfiguration, backup_filename: str, b
3333
SMB_PORT_139 = 139
3434

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

4138
# ------------------------------------------------------------
4239
# 1) SMB2/3 über Port 445 testen

0 commit comments

Comments
 (0)