fix config loading (mistake from previous commits)

This commit is contained in:
fdev31 2023-07-31 18:28:50 +02:00
parent a0f3ca2a83
commit 60997fafa7

View file

@ -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: