summaryrefslogtreecommitdiff
path: root/astroid/protocols.py
diff options
context:
space:
mode:
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r--astroid/protocols.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py
index 08d3b7a4..68d61e97 100644
--- a/astroid/protocols.py
+++ b/astroid/protocols.py
@@ -378,7 +378,7 @@ def _resolve_asspart(parts, asspath, context):
# A dictionary in an iterating context
try:
assigned, _ = part.items[index]
- except KeyError:
+ except IndexError:
return
elif hasattr(part, 'getitem'):