diff options
author | Ceridwen <ceridwenv@gmail.com> | 2015-11-03 15:01:38 -0500 |
---|---|---|
committer | Ceridwen <ceridwenv@gmail.com> | 2015-11-03 15:01:38 -0500 |
commit | 2a0ae68ad53ca60b7a31124ea2bef5c219d4e03b (patch) | |
tree | a2537d31c81a7202fd8542c76b51a316a89b9645 | |
parent | bc55c015163aab7d6be292f67687afec07aeacae (diff) | |
download | astroid-2a0ae68ad53ca60b7a31124ea2bef5c219d4e03b.tar.gz |
Improve InferenceError for remove_nodes
-rw-r--r-- | astroid/scoped_nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/scoped_nodes.py b/astroid/scoped_nodes.py index 9b52135..3b1e18a 100644 --- a/astroid/scoped_nodes.py +++ b/astroid/scoped_nodes.py @@ -94,7 +94,7 @@ def remove_nodes(cls): # TODO: no way to access the context when raising this error. raise exceptions.AttributeInferenceError( 'No nodes left after removing all {remove_type!r} from ' - 'inferring for {node!r}.', + 'nodes inferred for {node!r}.', node=instance, remove_type=cls) return nodes return decorator |