Commit cd0673bc by Solo Group

odeo

1 parent 154979f7
......@@ -42,6 +42,9 @@ class Vendor(VendorClass):
content = resp.json() #json.dumps(resp.text)
self.response=content
self.save_log('inquiry')
if 'status' in content and content['status']=="NOT_FOUND":
content = dict(code=content['data']['error'],
error=content['data']['messsage'])
else:
content = dict(code=resp.status_code,
error=resp.text)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!