summaryrefslogtreecommitdiff
path: root/nodes.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-18 16:09:53 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-18 16:09:53 +0100
commit6ac08a007866ae11d8f398245dfc05cee806b236 (patch)
tree4c60be8c4c4f0fb13bf14c4c3f6b71877f304eee /nodes.py
parent536f3efaaa298115a93fc34a7909c8c4c4260ca9 (diff)
downloadastroid-git-6ac08a007866ae11d8f398245dfc05cee806b236.tar.gz
lint fixes
--HG-- branch : _ast_compat
Diffstat (limited to 'nodes.py')
-rw-r--r--nodes.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/nodes.py b/nodes.py
index 476d3697..60713f45 100644
--- a/nodes.py
+++ b/nodes.py
@@ -141,7 +141,11 @@ class NodeNG:
def accept(self, visitor):
klass = self.__class__.__name__
- func = getattr(visitor, "visit_" + REDIRECT.get(klass, klass).lower() )
+ try:
+ func = getattr(visitor, "visit_" + REDIRECT.get(klass, klass).lower() )
+ except AttributeError:
+ print self, self.lineno, self.fromlineno
+ raise
return func(self)
def get_children(self):