diff --git a/radicale/auth/__init__.py b/radicale/auth/__init__.py index f0d735a3..c27c394b 100644 --- a/radicale/auth/__init__.py +++ b/radicale/auth/__init__.py @@ -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) diff --git a/radicale/rights/__init__.py b/radicale/rights/__init__.py index 071c9e2e..b67d1000 100644 --- a/radicale/rights/__init__.py +++ b/radicale/rights/__init__.py @@ -56,7 +56,7 @@ def load(configuration): class_ = import_module(module).Rights except Exception as e: raise RuntimeError("Failed to load rights module %r: %s" % - (rights_type, e)) from e + (module, e)) from e logger.info("Rights type is %r", rights_type) return class_(configuration) diff --git a/radicale/storage/__init__.py b/radicale/storage/__init__.py index 90642ac7..13c93b58 100644 --- a/radicale/storage/__init__.py +++ b/radicale/storage/__init__.py @@ -55,7 +55,7 @@ def load(configuration): class_ = import_module(module).Collection except Exception as e: raise RuntimeError("Failed to load storage module %r: %s" % - (storage_type, e)) from e + (module, e)) from e logger.info("Storage type is %r", storage_type) class CollectionCopy(class_): diff --git a/radicale/web/__init__.py b/radicale/web/__init__.py index e4dd2cba..0322e696 100644 --- a/radicale/web/__init__.py +++ b/radicale/web/__init__.py @@ -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)