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

Return OK if batch is ensured to exist in Setra

parent 98745c26
No related branches found
No related tags found
No related merge requests found
Pipeline #74286 failed
......@@ -263,7 +263,11 @@ class SetraClient(object):
data=batchdata.json(),
headers=headers,
return_response=return_response)
return response
if response.status_code in (409, 202):
return 'OK'
else:
response.raise_for_status()
return response
def get_batch_complete(self, batch_id: str):
"""
......
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