Made sure to allow setting the option even though the client does not report it. Might help with #1218 ... maybe.

This commit is contained in:
Griatch 2017-02-18 19:41:03 +01:00
parent 865ab131bb
commit d9e305702f

View file

@ -549,7 +549,7 @@ class CmdOption(COMMAND_DEFAULT_CLASS):
def update(name, val, validator):
# helper: update property and report errors
try:
old_val = flags[name]
old_val = flags.get(name, False)
new_val = validator(val)
flags[name] = new_val
self.msg("Option |w%s|n was changed from '|w%s|n' to '|w%s|n'." % (name, old_val, new_val))