summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-07-16 09:55:59 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2019-07-16 09:55:59 +0200
commit09434b0a266e2ca468d96db6249e80f9bea6f3c7 (patch)
treea99ae0e61c635b75520bd44e85470be0471f7dfe
parent334a67db16b993a24e1d0267442f4a147bad5922 (diff)
downloadastroid-git-09434b0a266e2ca468d96db6249e80f9bea6f3c7.tar.gz
Replace InferenceError bubble up with a simple raise
-rw-r--r--astroid/bases.py2
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: