more error resilient
authorSylvain Thenault <sylvain.thenault@logilab.fr>
Tue, 25 Nov 2008 12:33:52 +0100
changeset 140 478bdd15bc0e
parent 139 16aafc56a1ac
child 141 6d008838f2c9
more error resilient
cwconfig.py
--- a/cwconfig.py	Tue Nov 25 12:33:39 2008 +0100
+++ b/cwconfig.py	Tue Nov 25 12:33:52 2008 +0100
@@ -264,9 +264,9 @@
         cube = CW_MIGRATION_MAP.get(cube, cube)
         try:
             return getattr(__import__('cubes.%s.__pkginfo__' % cube), cube).__pkginfo__
-        except ImportError:
+        except Exception, ex:
             raise ConfigurationError('unable to find packaging information for '
-                                     'cube %s' % cube)
+                                     'cube %s (%s: %s)' % (cube, ex.__class__.__name__, ex))
 
     @classmethod
     def cube_version(cls, cube):