# HG changeset patch # User Denis Laxalde # Date 1485507510 -3600 # Node ID 5284fee68601c8740083e5262dcc3c509eac2069 # Parent 760deab5413e0706793e38bdf9dcc55d46ef3876 [cwconfig] Issue a warning when a "core" ctl plugin failed to load This is often because of a missing dependency, the warning would indicate this hopefully. diff -r 760deab5413e -r 5284fee68601 cubicweb/cwconfig.py --- a/cubicweb/cwconfig.py Fri Jan 27 13:36:00 2017 +0100 +++ b/cubicweb/cwconfig.py Fri Jan 27 09:58:30 2017 +0100 @@ -722,7 +722,9 @@ 'devtools.devctl', 'pyramid.pyramidctl'): try: __import__('cubicweb.%s' % ctlmod) - except ImportError: + except ImportError as exc: + cls.warning('failed to load cubicweb-ctl plugin %s (%s)', + ctlmod, exc) continue cls.info('loaded cubicweb-ctl plugin %s', ctlmod) for cube in cls.available_cubes():