summaryrefslogtreecommitdiff
path: root/checkers
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2014-11-18 00:22:32 +0200
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2014-11-18 00:22:32 +0200
commitb271c416890b6e6cf02a314abb70eb634302e103 (patch)
tree8fc81a9e64822767453aea8d16d80e75e9000ab8 /checkers
parent056803c3a93ea3050a05fd243494fc2f87fedc3e (diff)
downloadpylint-git-b271c416890b6e6cf02a314abb70eb634302e103.tar.gz
.infer can fail with InferenceError.
Diffstat (limited to 'checkers')
-rw-r--r--checkers/python3.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/python3.py b/checkers/python3.py
index ec8f4b774..c12a28e1e 100644
--- a/checkers/python3.py
+++ b/checkers/python3.py
@@ -29,9 +29,9 @@ def _is_old_octal(literal):
return _OLD_OCTAL.match(literal) and set(literal) != set(['0'])
def _check_dict_node(node):
- inferred = node.infer()
inferred_types = set()
try:
+ inferred = node.infer()
for inferred_node in inferred:
inferred_types.add(inferred_node)
except (astroid.InferenceError, astroid.UnresolvableName):