summaryrefslogtreecommitdiff
path: root/astroid/decorators.py
diff options
context:
space:
mode:
authorCeridwen <ceridwenv@gmail.com>2015-11-03 00:42:57 -0500
committerCeridwen <ceridwenv@gmail.com>2015-11-03 00:42:57 -0500
commitbc55c015163aab7d6be292f67687afec07aeacae (patch)
treec0ec1f71becf50fa56c1e90ec1918e8195ab5b50 /astroid/decorators.py
parent1ba0f2d96fbc45ff0b6014b12db98716183e8277 (diff)
downloadastroid-bc55c015163aab7d6be292f67687afec07aeacae.tar.gz
Improve InferenceError for remove_nodes
Diffstat (limited to 'astroid/decorators.py')
-rw-r--r--astroid/decorators.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/astroid/decorators.py b/astroid/decorators.py
index 27ce983..815b540 100644
--- a/astroid/decorators.py
+++ b/astroid/decorators.py
@@ -129,5 +129,6 @@ def raise_if_nothing_inferred(func, instance, args, kwargs):
yield node
except exceptions.DefaultStop as e:
fields = vars(e)
+ del fields['message']
if not inferred:
raise exceptions.InferenceError(**fields)