diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-15 10:34:07 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-15 10:34:07 +0100 |
commit | a9e5aa99d683f8e7daebbc065bb363290cd9580e (patch) | |
tree | 89ded6d31cf1312533b634c4d0fea8ca27a194e5 /manager.py | |
parent | fb09403ab49b207da3aa9a9b3f738af0085c031e (diff) | |
parent | 93234d5c28024cc72a0c22d80c3d6b65f3d84686 (diff) | |
download | astroid-git-a9e5aa99d683f8e7daebbc065bb363290cd9580e.tar.gz |
merge
Diffstat (limited to 'manager.py')
-rw-r--r-- | manager.py | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -116,18 +116,8 @@ class ASTNGManager(OptionsProviderMixIn): if modname in self._cache: return self._cache[modname] if source: - try: - from logilab.astng.builder import ASTNGBuilder - return ASTNGBuilder(self).file_build(filepath, modname) - except (SyntaxError, KeyboardInterrupt, SystemExit): - raise - except Exception, ex: - if __debug__: - print 'error while building astng for', filepath - import traceback - traceback.print_exc() - msg = 'Unable to load module %s (%s)' % (modname, ex) - raise ASTNGBuildingException, msg, sys.exc_info()[-1] + from logilab.astng.builder import ASTNGBuilder + return ASTNGBuilder(self).file_build(filepath, modname) elif fallback and modname: return self.astng_from_module_name(modname) raise ASTNGBuildingException('unable to get astng for file %s' % |