Skip to content

Commit bd5cbdd

Browse files
authored
Merge pull request #847 from hubmapconsortium/karlburke/PUTCall500ExceptionRevertingDatasetStatus
Add module resolution to Exception subclass usage.
2 parents d1b8dc1 + b9b98f1 commit bd5cbdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/schema/schema_validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -906,12 +906,12 @@ def _validate_application_header(applications_allowed, request_headers):
906906

907907
if not app_header:
908908
msg = f"Unable to proceed due to missing {SchemaConstants.HUBMAP_APP_HEADER} header from request"
909-
raise MissingApplicationHeaderException(msg)
909+
raise schema_errors.MissingApplicationHeaderException(msg)
910910

911911
# Use lowercase for comparing the application header value against the yaml
912912
if app_header.lower() not in applications_allowed:
913913
msg = f"Unable to proceed due to invalid {SchemaConstants.HUBMAP_APP_HEADER} header value: {app_header}"
914-
raise InvalidApplicationHeaderException(msg)
914+
raise schema_errors.InvalidApplicationHeaderException(msg)
915915

916916
"""
917917
Indicate if the entity meets a criteria to lock out modification updates

0 commit comments

Comments
 (0)