# HG changeset patch # User Aurelien Campeas # Date 1253117683 -7200 # Node ID 02a918f108a7056d2fdd81c278b089051477fdd1 # Parent e9f4ea71e69626afcd2d1d5b0804740e3c1bdbde prevent some command providers to stop using cubicweb-ctl (current case : goactl when vobject is not there) diff -r e9f4ea71e696 -r 02a918f108a7 cwconfig.py --- 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')