mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
show module name in error message
This commit is contained in:
parent
8c8886a808
commit
6e19ed893a
4 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@ def load(configuration):
|
|||
class_ = import_module(module).Web
|
||||
except Exception as e:
|
||||
raise RuntimeError("Failed to load web module %r: %s" %
|
||||
(web_type, e)) from e
|
||||
(module, e)) from e
|
||||
logger.info("Web type is %r", web_type)
|
||||
return class_(configuration)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue