Skip to content

Commit

Permalink
Merge pull request #381 from CybercentreCanada/hotfix/async_task
Browse files Browse the repository at this point in the history
Hotfix/async task
  • Loading branch information
cccs-sgaron authored Sep 28, 2021
2 parents aadc3ec + a3918ce commit 73581c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assemblyline/datastore/stores/es_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@ def _get_task_results(self, task):
else:
raise

return res['response']
try:
return res['response']
except KeyError:
return res['task']['status']

def _safe_index_copy(self, copy_function, src, target, body=None, min_status='yellow'):
ret = copy_function(src, target, body=body, request_timeout=60)
Expand Down

0 comments on commit 73581c2

Please sign in to comment.