We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 109c65e commit 46be012Copy full SHA for 46be012
nibabel/elemcont.py
@@ -28,9 +28,8 @@ class InvalidElemError(Exception):
28
'''The object being added to the container doesn't have a `value` attribute
29
'''
30
def __init__(self, invalid_val):
31
- self.invalid_val = invalid_val
32
message = ("Provided value '%s' of type %s does not have a 'value' "
33
- "attribute" % (self.invalid_val, type(invalid_val)))
+ "attribute" % (invalid_val, type(invalid_val)))
34
super(InvalidElemError, self).__init__(message)
35
36
0 commit comments