summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):