1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-28 19:40:54 +00:00

show module name in error message

This commit is contained in:
Unrud 2018-09-18 21:04:57 +02:00
parent 8c8886a808
commit 6e19ed893a
4 changed files with 4 additions and 4 deletions

View file

@ -72,7 +72,7 @@ def load(configuration):
class_ = import_module(module).Auth
except Exception as e:
raise RuntimeError("Failed to load authentication module %r: %s" %
(auth_type, e)) from e
(module, e)) from e
logger.info("Authentication type is %r", auth_type)
return class_(configuration)