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:
Peter Wu 2016-03-18 12:27:16 +01:00
parent b052ab9ef0
commit dd2755909d
1 changed files with 1 additions and 1 deletions

View File

@ -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)