diff --git a/src/api/views.py b/src/api/views.py index 0c24d0327..a7dd7600a 100644 --- a/src/api/views.py +++ b/src/api/views.py @@ -97,7 +97,9 @@ def available(request, domain=""): if check_domain_available(domain): return JsonResponse({"available": True, "code": "success", "message": DOMAIN_API_MESSAGES["success"]}) else: - return JsonResponse({"available": False, "code": "unavailable", "message": DOMAIN_API_MESSAGES["unavailable"]}) + return JsonResponse( + {"available": False, "code": "unavailable", "message": DOMAIN_API_MESSAGES["unavailable"]} + ) except Exception: return JsonResponse({"available": False, "code": "error", "message": DOMAIN_API_MESSAGES["error"]}) diff --git a/src/registrar/utility/errors.py b/src/registrar/utility/errors.py index d096a30da..455419236 100644 --- a/src/registrar/utility/errors.py +++ b/src/registrar/utility/errors.py @@ -44,9 +44,9 @@ class GenericError(Exception): _error_mapping = { GenericErrorCodes.CANNOT_CONTACT_REGISTRY: ( -"We’re experiencing a system connection error. Please wait a few minutes " -"and try again. If you continue to receive this error after a few tries, " -"contact help@get.gov." + "We’re experiencing a system connection error. Please wait a few minutes " + "and try again. If you continue to receive this error after a few tries, " + "contact help@get.gov." ), GenericErrorCodes.GENERIC_ERROR: ("Value entered was wrong."), }