From 2f777dcb73d485c018eaa8472f4d9846a0e72ee8 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 29 May 2017 20:05:37 +0200 Subject: [PATCH] decode bytes not str --- bin/pandora_client | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pandora_client b/bin/pandora_client index 1a9535f..d6ed302 100755 --- a/bin/pandora_client +++ b/bin/pandora_client @@ -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)