diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2019-07-16 09:55:59 +0200 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-07-16 09:55:59 +0200 |
| commit | 09434b0a266e2ca468d96db6249e80f9bea6f3c7 (patch) | |
| tree | a99ae0e61c635b75520bd44e85470be0471f7dfe | |
| parent | 334a67db16b993a24e1d0267442f4a147bad5922 (diff) | |
| download | astroid-git-09434b0a266e2ca468d96db6249e80f9bea6f3c7.tar.gz | |
Replace InferenceError bubble up with a simple raise
| -rw-r--r-- | astroid/bases.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/bases.py b/astroid/bases.py index caf7d882..c5087a79 100644 --- a/astroid/bases.py +++ b/astroid/bases.py @@ -228,7 +228,7 @@ class BaseInstance(Proxy): # descriptors # But only if the _proxied is the Class. if self._proxied.__class__.__name__ != "ClassDef": - raise exceptions.InferenceError(**vars(error)) from error + raise attrs = self._proxied.igetattr(name, context, class_context=False) yield from self._wrap_attr(attrs, context) except exceptions.AttributeInferenceError as error: |
