2👍
You probably want to send the response content as json, not as a serialized json string:
import json
bundle = {"code": 777, "status": False, "error": json.loads(e.response.content)}
Source:stackexchange.com
2👍
You probably want to send the response content as json, not as a serialized json string:
import json
bundle = {"code": 777, "status": False, "error": json.loads(e.response.content)}