Skip to content
Snippets Groups Projects
Commit d6ecc136 authored by Jiahang Chen's avatar Jiahang Chen
Browse files

fix json load

parent 58ac6202
No related branches found
No related tags found
No related merge requests found
Pipeline #503519 passed
...@@ -531,8 +531,8 @@ def __on_broker_callback(self, ch, method, properties, body): ...@@ -531,8 +531,8 @@ def __on_broker_callback(self, ch, method, properties, body):
try: try:
body = literal_eval(body.decode('utf-8')) body = literal_eval(body.decode('utf-8'))
except ValueError as e: except ValueError as e:
print(e) body = json.loads(body)
pass
elif isinstance(body, int): elif isinstance(body, int):
pass pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment