Commit f276bd9b authored by Wei Shoulin's avatar Wei Shoulin
Browse files

un json

parent f19bbfee
...@@ -71,7 +71,7 @@ class Result(dict): ...@@ -71,7 +71,7 @@ class Result(dict):
content_dict = json.loads(resp.content.decode('utf-8')) content_dict = json.loads(resp.content.decode('utf-8'))
self["message"] = content_dict.get("detail", "") self["message"] = content_dict.get("detail", "")
except Exception as _: except Exception as _:
pass self["message"] = resp.content.decode('utf-8')
return self return self
class DictObject(dict): class DictObject(dict):
......
Supports Markdown
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