Commit d6ecc136 authored by Jiahang Chen's avatar Jiahang Chen
Browse files

fix json load

parent 58ac6202
Pipeline #503519 passed with stages
in 32 seconds
......@@ -531,8 +531,8 @@ def __on_broker_callback(self, ch, method, properties, body):
try:
body = literal_eval(body.decode('utf-8'))
except ValueError as e:
print(e)
pass
body = json.loads(body)
elif isinstance(body, int):
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment