optinterpreter: Undefined variable 'valuestring'
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
parent
59161f0300
commit
bc865ab943
|
@ -61,7 +61,7 @@ class UserBooleanOption(UserOption):
|
|||
|
||||
def set_value(self, newvalue):
|
||||
if not isinstance(newvalue, bool):
|
||||
raise OptionException('Value "%s" for boolean option "%s" is not a boolean.' % (valuestring, self.name))
|
||||
raise OptionException('Value "%s" for boolean option "%s" is not a boolean.' % (str(newvalue), self.name))
|
||||
self.value = newvalue
|
||||
|
||||
def parse_string(self, valuestring):
|
||||
|
|
Loading…
Reference in New Issue