summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-12-01 09:57:39 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-12-01 09:57:39 +0100
commit9ff3beb68314ade13fa58f3e67c97b0ed00abd31 (patch)
treeb7a40ec4cc37e4fedad48e1e6a2fd314012564ee
parent454c449ea4d1423d5f9c7a20a27c9e3a5a1404a7 (diff)
downloadastroid-git-9ff3beb68314ade13fa58f3e67c97b0ed00abd31.tar.gz
cleanup: remove strange SyntaxError capture;
Such kind of captures should be done by manager.py or builder.py
-rw-r--r--mixins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mixins.py b/mixins.py
index 7a4277ed..72899005 100644
--- a/mixins.py
+++ b/mixins.py
@@ -140,7 +140,7 @@ class FromImportMixIn(BaseClass, FilterStmtsMixin):
return mymodule
try:
return mymodule.import_module(modname, level=level)
- except (ASTNGBuildingException, SyntaxError):
+ except ASTNGBuildingException:
raise InferenceError(modname)
def real_name(self, asname):