summaryrefslogtreecommitdiff
path: root/scoped_nodes.py
diff options
context:
space:
mode:
Diffstat (limited to 'scoped_nodes.py')
-rw-r--r--scoped_nodes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scoped_nodes.py b/scoped_nodes.py
index 2f12b065..c9d13b3d 100644
--- a/scoped_nodes.py
+++ b/scoped_nodes.py
@@ -499,7 +499,7 @@ def _infer_decorator_callchain(node):
# because there's no flow to reason when the return
# is what we are looking for, a static or a class method.
result = current.infer_call_result(current.parent).next()
- except InferenceError:
+ except (StopIteration, InferenceError):
return
if isinstance(result, (Function, CallFunc)):
current = result