[cwconfig] Fix exception handling when building the cube dependency graph
authorRémi Cardona <remi.cardona@logilab.fr>
Fri, 08 Mar 2013 11:03:28 +0100
changeset 8733 bdc50659f648
parent 8732 0d9c8f5eb285
child 8734 3530b7494195
[cwconfig] Fix exception handling when building the cube dependency graph UnorderableGraph exceptions do not have a 'cycles' property. A simple cast to str does the job.
cwconfig.py
--- a/cwconfig.py	Tue Mar 19 12:25:18 2013 +0100
+++ b/cwconfig.py	Fri Mar 08 11:03:28 2013 +0100
@@ -581,8 +581,7 @@
         try:
             return ordered_nodes(graph)
         except UnorderableGraph as ex:
-            raise ConfigurationError('cycles in cubes dependencies: %s'
-                                     % ex.cycles)
+            raise ConfigurationError(ex)
 
     @classmethod
     def cls_adjust_sys_path(cls):