cli/config: fix error message
Attempt to fix: $ bin/solaar config master dpi higher solaar: error: coercing to Unicode: need string or buffer, int found The DPI choices are integers, therefore cast it to a str.
This commit is contained in:
parent
b052ab9ef0
commit
dd2755909d
|
@ -117,5 +117,5 @@ def run(receivers, args, find_receiver, find_device):
|
|||
|
||||
result = setting.write(value)
|
||||
if result is None:
|
||||
raise Exception("failed to set '%s' = '%s' [%r]" % (setting.name, value, value))
|
||||
raise Exception("failed to set '%s' = '%s' [%r]" % (setting.name, str(value), value))
|
||||
_print_setting(setting, False)
|
||||
|
|
Loading…
Reference in New Issue