From 1286bb929ec74139dfb97dced1dfa1e4b14d5895 Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Fri, 21 Jun 2024 03:28:13 +0200 Subject: [PATCH] GUI: Fix unneeded finally statement --- npbackup/gui/operations.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/npbackup/gui/operations.py b/npbackup/gui/operations.py index c34f477..dee3781 100644 --- a/npbackup/gui/operations.py +++ b/npbackup/gui/operations.py @@ -234,10 +234,9 @@ def operations_gui(full_config: dict) -> dict: except Exception as exc: logger.debug("Trace:", exc_info=True) object_name = None - finally: - if not object_name: - sg.PopupError(_t("operations_gui.no_repo_selected"), keep_on_top=True) - continue + if not object_name: + sg.PopupError(_t("operations_gui.no_repo_selected"), keep_on_top=True) + continue manager_password = get_manager_password( full_config, object_name )