From 196482f9e24512a7a2a6a537c662c0dd684b63af Mon Sep 17 00:00:00 2001 From: Szymon P Date: Wed, 11 Feb 2026 22:10:57 +0100 Subject: [PATCH] fixed not showing login screen if no password is saved --- zut_app/zutui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zut_app/zutui.py b/zut_app/zutui.py index 58975fb..078afa1 100644 --- a/zut_app/zutui.py +++ b/zut_app/zutui.py @@ -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: