mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-17 02:16:40 +08:00
GUI: another fix for not init repos
This commit is contained in:
parent
67adf6e0ef
commit
c898849632
1 changed files with 2 additions and 2 deletions
|
@ -228,7 +228,7 @@ def ls_window(repo_config: dict, snapshot_id: str) -> bool:
|
|||
__autoclose=True,
|
||||
__compact=True,
|
||||
)
|
||||
if not result["result"]:
|
||||
if not result or not result["result"]:
|
||||
sg.Popup("main_gui.snapshot_is_empty")
|
||||
return None, None
|
||||
# result is {"result": True, "output": [{snapshot_description}, {entry}, {entry}]}
|
||||
|
@ -492,7 +492,7 @@ def _main_gui(viewer_mode: bool):
|
|||
__autoclose=True,
|
||||
__compact=True,
|
||||
)
|
||||
if not result["result"]:
|
||||
if not result or not result["result"]:
|
||||
snapshots = None
|
||||
else:
|
||||
snapshots = result["output"]
|
||||
|
|
Loading…
Add table
Reference in a new issue