We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39735eb commit fab9db4Copy full SHA for fab9db4
Consumer.py
@@ -15,7 +15,10 @@
15
def get_value_from_type(obj):
16
value_str = obj
17
if isinstance(obj, bytes):
18
- value_str = obj.decode("utf-8")
+ try:
19
+ value_str = obj.decode("utf-8")
20
+ except UnicodeDecodeError:
21
+ value_str = "".join(map(chr, obj))
22
if isinstance(obj, list):
23
value_str = [get_value_from_type(x) for x in obj]
24
if isinstance(obj, tuple):
0 commit comments