mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-07 20:19:14 +08:00
GUI: Fix unneeded finally statement
This commit is contained in:
parent
1a0644d05c
commit
1286bb929e
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue