fix dumb name error triggering crash when some directory in cubes search path doesn't exist stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 17 Feb 2010 11:25:46 +0100
branchstable
changeset 4605 7f884ee28519
parent 4604 96cc3d296d75
child 4606 3b7ce7036b19
fix dumb name error triggering crash when some directory in cubes search path doesn't exist
cwconfig.py
--- a/cwconfig.py	Wed Feb 17 11:25:12 2010 +0100
+++ b/cwconfig.py	Wed Feb 17 11:25:46 2010 +0100
@@ -328,7 +328,7 @@
         cubes = set()
         for directory in cls.cubes_search_path():
             if not os.path.exists(directory):
-                self.error('unexistant directory in cubes search path: %s'
+                cls.error('unexistant directory in cubes search path: %s'
                            % directory)
                 continue
             for cube in os.listdir(directory):