summaryrefslogtreecommitdiff
path: root/astroid/inference.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-03-25 11:05:48 +0100
committerGitHub <noreply@github.com>2022-03-25 11:05:48 +0100
commitd2df04773ac8c97b3bbdcc3ed1c7bdbaef2cfc7d (patch)
tree167c8c80686a0752295094245fb5308513729fc1 /astroid/inference.py
parent4d79e08d507674b71ef6d502050c72b59fb1bf53 (diff)
downloadastroid-git-d2df04773ac8c97b3bbdcc3ed1c7bdbaef2cfc7d.tar.gz
Update ``pylint`` to ``2.13`` (#1488)
Also remove the runtime installation of contributors-txt We can install it on python <3.8 now. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'astroid/inference.py')
-rw-r--r--astroid/inference.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/inference.py b/astroid/inference.py
index d2203004..cd66a917 100644
--- a/astroid/inference.py
+++ b/astroid/inference.py
@@ -537,9 +537,9 @@ def _infer_unaryop(self, context=None):
yield operand
else:
yield result
- except AttributeInferenceError as exc:
+ except AttributeInferenceError as inner_exc:
# The unary operation special method was not found.
- yield util.BadUnaryOperationMessage(operand, self.op, exc)
+ yield util.BadUnaryOperationMessage(operand, self.op, inner_exc)
except InferenceError:
yield util.Uninferable