File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -244,13 +244,17 @@ def backup(
244
244
logger .setLevel (logging .DEBUG )
245
245
246
246
with dostore .container as container :
247
- backup_manager = backup_utils .BackupManager (
248
- dest ,
249
- keep = keep ,
250
- rsync_exe = rsync_exe ,
251
- )
252
- backup_manager .backup_auto_folders (
253
- lambda path , prev : backup_utils .backup_container (
254
- backup_manager , container , path , prev
247
+ try :
248
+ backup_manager = backup_utils .BackupManager (
249
+ dest ,
250
+ keep = keep ,
251
+ rsync_exe = rsync_exe ,
255
252
)
256
- )
253
+ backup_manager .backup_auto_folders (
254
+ lambda path , prev : backup_utils .backup_container (
255
+ backup_manager , container , path , prev
256
+ )
257
+ )
258
+ except (ValueError , backup_utils .BackupError ) as e :
259
+ click .echo (f"Error: { e } " )
260
+ sys .exit (1 )
You can’t perform that action at this time.
0 commit comments