At client.py
|
.format(self.bind_address_string, repr(str(msg)))) |
a str(msg) is called if logger is set to debug level, but in core.py
|
return byte_str.decode('utf-8') |
if using python3 and the message is just some bytes which cannot be decoded as UTF-8, an UnicodeDecodeError is thrown.
A workaround is just set logger level to info, but I'm wondering is it considered a bug, and is there any better options?
Thanks in advance.
At client.py
katcp-python/katcp/client.py
Line 548 in 7a94c7d
a
str(msg)is called if logger is set to debug level, but in core.pykatcp-python/katcp/core.py
Line 384 in 7a94c7d
if using python3 and the message is just some bytes which cannot be decoded as UTF-8, an UnicodeDecodeError is thrown.
A workaround is just set logger level to info, but I'm wondering is it considered a bug, and is there any better options?
Thanks in advance.