Fix domain_helper

This commit is contained in:
zandercymatics 2024-01-17 12:58:09 -07:00
parent 6c6d830e2a
commit f1c8c94a8a
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -38,6 +38,9 @@ class DomainHelper:
if domain == "" and not blank_ok:
raise errors.BlankValueError()
elif domain == "":
# If blank ok is true, just return the domain
return domain
if domain.endswith(".gov"):
domain = domain[:-4]