mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-31 09:43:54 +02:00
Update domain_helper.py
This commit is contained in:
parent
ce361cdd3b
commit
05ebe98adb
1 changed files with 4 additions and 3 deletions
|
@ -91,9 +91,10 @@ class DomainHelper:
|
||||||
error_return_type, code=error_map.get(type(error))
|
error_return_type, code=error_map.get(type(error))
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
response = DomainHelper._return_form_error_or_json_response(
|
if error_return_type != ValidationErrorReturnType.FORM_VALIDATION_ERROR:
|
||||||
error_return_type, code="success", available=True
|
response = DomainHelper._return_form_error_or_json_response(
|
||||||
)
|
error_return_type, code="success", available=True
|
||||||
|
)
|
||||||
return (validated, response)
|
return (validated, response)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue