Skip to content

Commit

Permalink
add boundsvalidationerror
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPlayer3 committed Oct 22, 2024
1 parent da772bc commit 09f6acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/hyp3_api/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import dynamo
from dynamo.exceptions import AccessCodeError, InsufficientCreditsError, UnexpectedApplicationStatusError
from hyp3_api import util
from hyp3_api.validation import GranuleValidationError, validate_jobs
from hyp3_api.validation import BoundsValidationError, GranuleValidationError, validate_jobs


def problem_format(status, message):
Expand All @@ -28,7 +28,7 @@ def post_jobs(body, user):
validate_jobs(body['jobs'])
except requests.HTTPError as e:
print(f'WARN: CMR search failed: {e}')
except GranuleValidationError as e:
except (BoundsValidationError, GranuleValidationError) as e:
abort(problem_format(400, str(e)))

try:
Expand Down

0 comments on commit 09f6acd

Please sign in to comment.