Skip to content

Commit

Permalink
Also trap cases where service service completely crash dues to what w…
Browse files Browse the repository at this point in the history
…e sent it.
  • Loading branch information
cccs-sgaron committed May 13, 2020
1 parent da04be1 commit 6cc8c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assemblyline_service_client/task_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def handle_task_result(self, result_json_path: str, task: ServiceTask):

data['freshen'] = False
r = self.request_with_retries('post', self._path('task'), json=data)
except ServiceServerException as e:
except (ServiceServerException, requests.HTTPError) as e:
self.handle_task_error(task, message=str(e), error_type='EXCEPTION', status='FAIL_NONRECOVERABLE')

def handle_task_error(self, task: ServiceTask, error_json_path: Optional[str] = None,
Expand Down

0 comments on commit 6cc8c02

Please sign in to comment.