RPC errors on python 3 come back as bytes, rather than strs, example:
deluge_client.client.b'BadLoginError': (b'Password does not match', b'localclient')
b'Traceback (most recent call last):\n File "/usr/local/lib/python2.7/dist-packages/deluge-2.0b2.dev37-py2.7.egg/deluge/core/rpcserver.py", line 248, in dispatch\n ret = component.get(\'AuthManager\').authorize(*args, **kwargs)\n File "/usr/local/lib/python2.7/dist-packages/deluge-2.0b2.dev37-py2.7.egg/deluge/core/authmanager.py", line 116, in authorize\n raise BadLoginError(\'Password does not match\', username)\nBadLoginError: Password does not match\n'
The b'' and lack of literal newlines in traceback isn't so nice. Results should be decoded to strings before raising exceptions, for readability. (Testing on python 2 is also needed)
RPC errors on python 3 come back as bytes, rather than strs, example:
The
b''
and lack of literal newlines in traceback isn't so nice. Results should be decoded to strings before raising exceptions, for readability. (Testing on python 2 is also needed)