Update src/pilgrim/ui/screens/diary_list_screen.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Gustavo Henrique Miranda
2025-07-24 19:23:40 -03:00
committed by GitHub
co-authored by coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent 209099cc5e
commit 7c950b93ab
+3 -6
View File
@@ -307,12 +307,9 @@ class DiaryListScreen(Screen):
if session: if session:
backup_service = BackupService(session) backup_service = BackupService(session)
result_operation, result_data = backup_service.create_backup() result_operation, result_data = backup_service.create_backup()
else:
self.notify("You must be logged in to perform this action")
if result_operation: if result_operation:
self.notify(f"Backup result: {result_data}") self.notify(f"Backup result: {result_data}")
else: else:
self.notify(f"Error performing backup {result_data}") self.notify(f"Error performing backup: {result_data}")
raise Exception("Error performing backup") else:
self.app.exit() self.notify("You must be logged in to perform this action")