From 09a32174c81e7da6ea0b566c2d36790614a1c84c Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sun, 3 Jun 2018 20:07:40 -0400 Subject: [PATCH] handle tuples in network RPC request data --- torba/basenetwork.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torba/basenetwork.py b/torba/basenetwork.py index 2d45a2a2d..59c2855e7 100644 --- a/torba/basenetwork.py +++ b/torba/basenetwork.py @@ -25,7 +25,7 @@ def unicode2bytes(string): def bytes2unicode(maybe_bytes): if isinstance(maybe_bytes, bytes): return maybe_bytes.decode() - elif isinstance(maybe_bytes, list): + elif isinstance(maybe_bytes, (list, tuple)): return [bytes2unicode(b) for b in maybe_bytes] return maybe_bytes