cwconfig.py
branch3.5
changeset 3269 02a918f108a7
parent 3118 9e7a155bc4e5
child 3270 ae43a0ddc1d9
--- a/cwconfig.py	Wed Sep 16 17:52:54 2009 +0200
+++ b/cwconfig.py	Wed Sep 16 18:14:43 2009 +0200
@@ -392,7 +392,11 @@
                         'server/serverctl.py', 'hercule.py',
                         'devtools/devctl.py', 'goa/goactl.py'):
             if exists(join(CW_SOFTWARE_ROOT, ctlfile)):
-                load_module_from_file(join(CW_SOFTWARE_ROOT, ctlfile))
+                try:
+                    load_module_from_file(join(CW_SOFTWARE_ROOT, ctlfile))
+                except ImportError, err:
+                    cls.warning('could not import the command provider %s (cause : %s)' %
+                                (ctlfile, err))
                 cls.info('loaded cubicweb-ctl plugin %s', ctlfile)
         for cube in cls.available_cubes():
             pluginfile = join(cls.cube_dir(cube), 'ecplugin.py')