summaryrefslogtreecommitdiff
path: root/astroid/bases.py
diff options
context:
space:
mode:
Diffstat (limited to 'astroid/bases.py')
-rw-r--r--astroid/bases.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/bases.py b/astroid/bases.py
index 05633b8b..0762f528 100644
--- a/astroid/bases.py
+++ b/astroid/bases.py
@@ -131,7 +131,7 @@ class Instance(Proxy):
def getattr(self, name, context=None, lookupclass=True):
try:
values = self._proxied.instance_attr(name, context)
- except exceptions.AttributeInferenceError as exception:
+ except exceptions.AttributeInferenceError:
if name == '__class__':
return [self._proxied]
if lookupclass: