forked from LBRYCommunity/lbry-sdk
handle tuples in network RPC request data
This commit is contained in:
parent
740af0465e
commit
09a32174c8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue