diff options
author | Ceridwen <ceridwenv@gmail.com> | 2015-11-03 00:42:57 -0500 |
---|---|---|
committer | Ceridwen <ceridwenv@gmail.com> | 2015-11-03 00:42:57 -0500 |
commit | bc55c015163aab7d6be292f67687afec07aeacae (patch) | |
tree | c0ec1f71becf50fa56c1e90ec1918e8195ab5b50 /astroid/decorators.py | |
parent | 1ba0f2d96fbc45ff0b6014b12db98716183e8277 (diff) | |
download | astroid-bc55c015163aab7d6be292f67687afec07aeacae.tar.gz |
Improve InferenceError for remove_nodes
Diffstat (limited to 'astroid/decorators.py')
-rw-r--r-- | astroid/decorators.py | 1 |
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) |