show module name in error message
This commit is contained in:
parent
8c8886a808
commit
6e19ed893a
@ -72,7 +72,7 @@ def load(configuration):
|
|||||||
class_ = import_module(module).Auth
|
class_ = import_module(module).Auth
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise RuntimeError("Failed to load authentication module %r: %s" %
|
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)
|
logger.info("Authentication type is %r", auth_type)
|
||||||
return class_(configuration)
|
return class_(configuration)
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ def load(configuration):
|
|||||||
class_ = import_module(module).Rights
|
class_ = import_module(module).Rights
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise RuntimeError("Failed to load rights module %r: %s" %
|
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)
|
logger.info("Rights type is %r", rights_type)
|
||||||
return class_(configuration)
|
return class_(configuration)
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ def load(configuration):
|
|||||||
class_ = import_module(module).Collection
|
class_ = import_module(module).Collection
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise RuntimeError("Failed to load storage module %r: %s" %
|
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)
|
logger.info("Storage type is %r", storage_type)
|
||||||
|
|
||||||
class CollectionCopy(class_):
|
class CollectionCopy(class_):
|
||||||
|
@ -32,7 +32,7 @@ def load(configuration):
|
|||||||
class_ = import_module(module).Web
|
class_ = import_module(module).Web
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise RuntimeError("Failed to load web module %r: %s" %
|
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)
|
logger.info("Web type is %r", web_type)
|
||||||
return class_(configuration)
|
return class_(configuration)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user