From c2921cf55520c9f886fe487fe154fc80601ce0ce Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 16 Nov 2008 22:40:36 +0100 Subject: [PATCH] crash work-around --- Cython/Compiler/Visitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Visitor.py b/Cython/Compiler/Visitor.py index 491f467b..fd1d516f 100644 --- a/Cython/Compiler/Visitor.py +++ b/Cython/Compiler/Visitor.py @@ -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__ -- 2.26.2