mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-22 01:19:44 +08:00
GUI: Fix error when repo not initialized
This commit is contained in:
parent
d3a8a5a48b
commit
ca18a34ea2
1 changed files with 1 additions and 1 deletions
|
|
@ -831,7 +831,7 @@ def _main_gui(viewer_mode: bool):
|
||||||
if repo_config:
|
if repo_config:
|
||||||
try:
|
try:
|
||||||
current_state, backup_tz, snapshot_list = get_gui_data(repo_config)
|
current_state, backup_tz, snapshot_list = get_gui_data(repo_config)
|
||||||
except ValueError:
|
except (TypeError, ValueError):
|
||||||
current_state = None
|
current_state = None
|
||||||
backup_tz = None
|
backup_tz = None
|
||||||
snapshot_list = []
|
snapshot_list = []
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue