mirror of
https://github.com/szymon-jozef/zutui.git
synced 2026-09-07 20:20:42 +02:00
fixed not showing login screen if no password is saved
This commit is contained in:
@@ -420,6 +420,8 @@ class ZutApp(App):
|
||||
with open(CONFIG_FILE, "r") as f:
|
||||
creds = json.load(f)
|
||||
password = keyring.get_password("zutui", creds["username"])
|
||||
if password is None:
|
||||
raise ValueError("Hasło nie zostało znalezione")
|
||||
self.zut_client = ZUT(creds["username"], password)
|
||||
self.push_screen(DashboardScreen())
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user