decode bytes not str
This commit is contained in:
parent
0fc45e4a53
commit
2f777dcb73
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue