Skip to content

Commit 7fd42fc

Browse files
committed
small CI thing
1 parent 517e8de commit 7fd42fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyflakes/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ def handleNodeLoad(self, node):
10971097

10981098
binding = scope.get(name, None)
10991099

1100-
if getattr(binding, 'assigned', None) is False:
1100+
if binding and binding.assigned is False:
11011101
self.report(messages.UndefinedName, node, name)
11021102

11031103
if isinstance(binding, Annotation) and not self._in_postponed_annotation:

0 commit comments

Comments
 (0)