summaryrefslogtreecommitdiff
path: root/pylint/checkers/classes.py
diff options
context:
space:
mode:
authorBryce Guinta <bryce.paul.guinta@gmail.com>2018-08-08 00:50:53 -0600
committerClaudiu Popa <pcmanticore@gmail.com>2018-08-08 20:39:31 +0200
commitaad50d9b6ff72f6f1c27e76ffd1c6c5d8ac5462d (patch)
tree53a8283d45811f239d172da07a3b04cbea2b9983 /pylint/checkers/classes.py
parentbe83fa0b797795d2598c41561b49c8a5916455e2 (diff)
downloadpylint-git-aad50d9b6ff72f6f1c27e76ffd1c6c5d8ac5462d.tar.gz
Stop protected-access exception for missing class attributes
Skip Uninferable values from getattr
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r--pylint/checkers/classes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py
index f49ee1f7d..612d9d34a 100644
--- a/pylint/checkers/classes.py
+++ b/pylint/checkers/classes.py
@@ -359,6 +359,8 @@ def _is_attribute_property(name, klass):
return False
property_name = "{}.property".format(BUILTINS)
for attr in attributes:
+ if attr is astroid.Uninferable:
+ continue
try:
infered = next(attr.infer())
except astroid.InferenceError: