Commit c0979706 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b1539ad6
......@@ -199,6 +199,7 @@ from astroid.scoped_nodes import Module
Module_getattr = Module.getattr
def _getattr(self, name, *args, **kw):
print 'AAA getattr %s %s' % (self.name, name)
try:
try:
return Module_getattr(self, name, *args, **kw)
except NotFoundError, e:
......@@ -244,7 +245,11 @@ def _getattr(self, name, *args, **kw):
raise e
self.locals[name] = [ast]
print '\t-> ok %s' % (ast,)
return [ast]
except Exception, e:
print '\t-> %s' % (e,)
raise
Module.getattr = _getattr
if sys.version_info < (2, 8):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment