From 26fdcdc256db0f83276c4239ebe1de76852a8add Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kolinger?= Date: Wed, 9 Feb 2022 14:25:59 +0100 Subject: [PATCH] fixed crash for new installations --- webapp/index.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webapp/index.py b/webapp/index.py index c6839c0..07d422a 100644 --- a/webapp/index.py +++ b/webapp/index.py @@ -57,8 +57,7 @@ def fill(self): variables["connect_button"] = "Connect" if status == "disconnected" else "Disconnect" setup = self.config.read("setup") - if setup and "theme" in setup: - variables["theme"] = setup["theme"] + variables["theme"] = setup["theme"] if setup and "theme" in setup else "light" variables["embedded"] = current_app.config["embedded"]