[cwconfig] Fix two NameError in load_available_configs()
authorDenis Laxalde <denis.laxalde@logilab.fr>
Mon, 27 Feb 2017 16:57:59 +0100
changeset 11990 18aafce99b49
parent 11989 309cf6a2c24f
child 11991 d6e2b6d56432
[cwconfig] Fix two NameError in load_available_configs() This comes from a copy-paste in d92d75b17a85.
cubicweb/cwconfig.py
--- a/cubicweb/cwconfig.py	Mon Feb 27 08:53:52 2017 +0100
+++ b/cubicweb/cwconfig.py	Mon Feb 27 16:57:59 2017 +0100
@@ -713,9 +713,9 @@
                         'server.serverconfig',):
             try:
                 __import__('cubicweb.%s' % confmod)
-            except ImportError:
+            except ImportError as exc:
                 cls.warning('failed to load config module %s (%s)',
-                            ctlmod, exc)
+                            confmod, exc)
 
     @classmethod
     def load_cwctl_plugins(cls):