From 121b36f35fdafe3b08654f23fb6a138e999f3448 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 25 Nov 2021 19:21:40 +0100 Subject: [PATCH] lib: log error for file:// in config Signed-off-by: Jens Langhammer --- authentik/lib/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/lib/config.py b/authentik/lib/config.py index a4cf1348d..5df6a81af 100644 --- a/authentik/lib/config.py +++ b/authentik/lib/config.py @@ -83,8 +83,8 @@ class ConfigLoader: try: with open(url.path, "r", encoding="utf8") as _file: value = _file.read() - except OSError: - self._log("error", f"Failed to read config value from {url.path}") + except OSError as exc: + self._log("error", f"Failed to read config value from {url.path}: {exc}") value = url.query return value