[cwconfig] Issue a warning if a configuration module cannot be loaded
authorDenis Laxalde <denis.laxalde@logilab.fr>
Fri, 24 Feb 2017 09:19:35 +0100
changeset 11974 d92d75b17a85
parent 11973 5e7282bdf140
child 11975 248039d0e6b1
[cwconfig] Issue a warning if a configuration module cannot be loaded We already do this when loading ctl plugin modules, so make things symmetrical for config modules.
cubicweb/cwconfig.py
--- a/cubicweb/cwconfig.py	Fri Feb 24 09:18:08 2017 +0100
+++ b/cubicweb/cwconfig.py	Fri Feb 24 09:19:35 2017 +0100
@@ -714,7 +714,8 @@
             try:
                 __import__('cubicweb.%s' % confmod)
             except ImportError:
-                pass
+                cls.warning('failed to load config module %s (%s)',
+                            ctlmod, exc)
 
     @classmethod
     def load_cwctl_plugins(cls):