diff options
Diffstat (limited to 'pylint/checkers/python3.py')
-rw-r--r-- | pylint/checkers/python3.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pylint/checkers/python3.py b/pylint/checkers/python3.py index da7f58eb6..d8215f1f3 100644 --- a/pylint/checkers/python3.py +++ b/pylint/checkers/python3.py @@ -906,6 +906,9 @@ class Python3Checker(checkers.BaseChecker): self.add_message('unpacking-in-except', node=node) return + if not node.name: + return + # Find any names scope = node.parent.scope() scope_names = scope.nodes_of_class( |