Skip to content

Commit

Permalink
Fix get task results missing response
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-sgaron committed Sep 28, 2021
1 parent 34cddbd commit a3918ce
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 a3918ce

Please sign in to comment.