Remove code block used to test manually

This commit is contained in:
Erin 2023-12-06 14:02:52 -08:00
parent 6b0be2e7e8
commit 9a843e7a7d
No known key found for this signature in database
GPG key ID: 1CAD275313C62460

View file

@ -69,9 +69,6 @@ def check_domain_available(domain):
a match. If check fails, throws a RegistryError.
"""
Domain = apps.get_model("registrar.Domain")
# TODO: remove this block it is used for testing on dev sandbox to verify error retry
if "bad" in domain:
raise RegistryError("Forced Registry Error from bad domain")
if domain.endswith(".gov"):
return Domain.available(domain)
else: