Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jgainerdewar committed Dec 13, 2024
1 parent e29d61b commit 2b28efa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion servers/cromwell/jobs/controllers/jobs_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
from jobs.models.update_job_labels_request import UpdateJobLabelsRequest
from jobs.models.update_job_labels_response import UpdateJobLabelsResponse
from werkzeug.exceptions import (BadRequest, Forbidden, InternalServerError,
NotFound, ServiceUnavailable, Unauthorized)
NotFound, ServiceUnavailable, Unauthorized,
UnsupportedMediaType)

# This is needed to support different Python versions - this
# package structure changed in Python 3.10.
Expand Down Expand Up @@ -559,6 +560,8 @@ def handle_error(response):
raise BadRequest(_get_response_message(response))
elif response.status_code == Forbidden.code:
raise Forbidden(_get_response_message(response))
elif response.status_code == UnsupportedMediaType.code:
raise UnsupportedMediaType(_get_response_message(response))
elif response.status_code == InternalServerError.code:
raise InternalServerError(_get_response_message(response))
elif response.status_code == NotFound.code:
Expand Down

0 comments on commit 2b28efa

Please sign in to comment.