From 60997fafa7ebdcbe71a06ac9439517009c0c9b97 Mon Sep 17 00:00:00 2001 From: fdev31 Date: Mon, 31 Jul 2023 18:28:50 +0200 Subject: [PATCH] fix config loading (mistake from previous commits) --- pyprland/command.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyprland/command.py b/pyprland/command.py index b70e63f..9ca0320 100755 --- a/pyprland/command.py +++ b/pyprland/command.py @@ -34,7 +34,6 @@ class Pyprland: """Loads the configuration if `init` is true, also initializes the plugins""" - assert isinstance(self.config, dict) try: with open(os.path.expanduser(CONFIG_FILE), encoding="utf-8") as f: self.config = json.loads(f.read()) @@ -167,7 +166,7 @@ async def run_daemon(): except PyprError as e: raise SystemExit(1) from e except Exception as e: - manager.log.critical("Failed to load config.") + manager.log.critical("Failed to load config.", exc_info=True) raise SystemExit(1) from e try: