lib: log error for file:// in config

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-11-25 19:21:40 +01:00
parent 363aed2a47
commit 121b36f35f
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ class ConfigLoader:
try: try:
with open(url.path, "r", encoding="utf8") as _file: with open(url.path, "r", encoding="utf8") as _file:
value = _file.read() value = _file.read()
except OSError: except OSError as exc:
self._log("error", f"Failed to read config value from {url.path}") self._log("error", f"Failed to read config value from {url.path}: {exc}")
value = url.query value = url.query
return value return value