Skip to content

Commit

Permalink
Fix potential crash when name can't be bound
Browse files Browse the repository at this point in the history
  • Loading branch information
JukkaL committed Oct 25, 2014
1 parent 2ba6f45 commit c1a85c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mypy/semanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,7 @@ def lookup_qualified(self, name: str, ctx: Context) -> SymbolTableNode:
n = (cast(MypyFile, n.node)).names.get(parts[i], None)
if not n:
self.name_not_defined(name, ctx)
break
if n:
n = self.normalize_type_alias(n, ctx)
return n
Expand Down

0 comments on commit c1a85c8

Please sign in to comment.