mirror of
https://github.com/gmbrax/Pilgrim.git
synced 2026-11-10 04:50:18 +00:00
Add a error handling on backup operation
This commit is contained in:
parent
890fc470bb
commit
209099cc5e
@@ -27,7 +27,7 @@ class BackupService:
|
||||
if file_path.is_file():
|
||||
arcname = file_path.relative_to(diaries_root_path.parent)
|
||||
zipf.write(file_path, arcname=arcname)
|
||||
return True, None
|
||||
return True, filename
|
||||
except Exception as e:
|
||||
return False, str(e)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user