fix config loading (mistake from previous commits)
This commit is contained in:
parent
a0f3ca2a83
commit
60997fafa7
1 changed files with 1 additions and 2 deletions
|
@ -34,7 +34,6 @@ class Pyprland:
|
||||||
"""Loads the configuration
|
"""Loads the configuration
|
||||||
|
|
||||||
if `init` is true, also initializes the plugins"""
|
if `init` is true, also initializes the plugins"""
|
||||||
assert isinstance(self.config, dict)
|
|
||||||
try:
|
try:
|
||||||
with open(os.path.expanduser(CONFIG_FILE), encoding="utf-8") as f:
|
with open(os.path.expanduser(CONFIG_FILE), encoding="utf-8") as f:
|
||||||
self.config = json.loads(f.read())
|
self.config = json.loads(f.read())
|
||||||
|
@ -167,7 +166,7 @@ async def run_daemon():
|
||||||
except PyprError as e:
|
except PyprError as e:
|
||||||
raise SystemExit(1) from e
|
raise SystemExit(1) from e
|
||||||
except Exception as 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
|
raise SystemExit(1) from e
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue