diff options
author | Bryce Guinta <bryce.paul.guinta@gmail.com> | 2018-08-08 00:50:53 -0600 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-08-08 20:39:31 +0200 |
commit | aad50d9b6ff72f6f1c27e76ffd1c6c5d8ac5462d (patch) | |
tree | 53a8283d45811f239d172da07a3b04cbea2b9983 /pylint/checkers/classes.py | |
parent | be83fa0b797795d2598c41561b49c8a5916455e2 (diff) | |
download | pylint-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.py | 2 |
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: |