Update domain_helper.py

This commit is contained in:
zandercymatics 2024-01-09 14:18:32 -07:00
parent ce361cdd3b
commit 05ebe98adb
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -91,9 +91,10 @@ class DomainHelper:
error_return_type, code=error_map.get(type(error))
)
else:
response = DomainHelper._return_form_error_or_json_response(
error_return_type, code="success", available=True
)
if error_return_type != ValidationErrorReturnType.FORM_VALIDATION_ERROR:
response = DomainHelper._return_form_error_or_json_response(
error_return_type, code="success", available=True
)
return (validated, response)
@staticmethod