crash work-around
authorStefan Behnel <scoder@users.berlios.de>
Sun, 16 Nov 2008 21:40:36 +0000 (22:40 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 16 Nov 2008 21:40:36 +0000 (22:40 +0100)
Cython/Compiler/Visitor.py

index 491f467bc518e1f01df2fd758e16dfc35e45e843..fd1d516ff1c89b43643444b36f7702e12b61f323 100644 (file)
@@ -33,7 +33,7 @@ class BasicVisitor(object):
                     pass
             else:
                 print type(self), type(obj)
-                if hasattr(self, 'access_path'):
+                if hasattr(self, 'access_path') and self.access_path:
                     print self.access_path
                     print self.access_path[-1][0].pos
                     print self.access_path[-1][0].__dict__