decode bytes not str

This commit is contained in:
j 2017-05-29 20:05:37 +02:00
parent 0fc45e4a53
commit 2f777dcb73
1 changed files with 1 additions and 1 deletions

View File

@ -68,6 +68,6 @@ for more information visit https://wiki.0x2620.org/wiki/pandora_client''' % ', '
}, f, indent=2)
pandora_client.DEBUG = opts.debug
c = pandora_client.Client(opts.config, offline)
args = [a.decode('utf-8') if isinstance(a, str) else a for a in args[1:]]
args = [a.decode('utf-8') if isinstance(a, bytes) else a for a in args[1:]]
getattr(c, action)(args)