Skip to content
Snippets Groups Projects
Commit fdb682ed authored by Jo Sama's avatar Jo Sama :scream:
Browse files

Raise HTTP errors when calling post_multi()

This allows us to catch more errors that can occour when transferring
data to Setra.
parent e0e3f6c3
No related branches found
No related tags found
No related merge requests found
Pipeline #48680 passed
...@@ -206,7 +206,8 @@ class SetraClient(object): ...@@ -206,7 +206,8 @@ class SetraClient(object):
headers = {'Content-Type': 'application/json'} headers = {'Content-Type': 'application/json'}
response = self.post(url, response = self.post(url,
data=multidata.json(), data=multidata.json(),
headers=headers) headers=headers,
return_response=False)
return response return response
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment