catch utf8 error
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
24284be199
commit
311f6a902e
|
@ -25,7 +25,11 @@ def unsanitize(node, default=""):
|
||||||
v = node.text + "=" * (4 - missing_padding)
|
v = node.text + "=" * (4 - missing_padding)
|
||||||
else:
|
else:
|
||||||
v = node.text
|
v = node.text
|
||||||
return base64.b64decode(v).decode("utf-8")
|
|
||||||
|
try:
|
||||||
|
return base64.b64decode(v).decode("utf-8")
|
||||||
|
except:
|
||||||
|
return "failed to read topic as utf-8"
|
||||||
|
|
||||||
return node.text
|
return node.text
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue