This commit is contained in:
zandercymatics 2023-09-28 08:01:37 -06:00
parent 60726f8c9b
commit d286fb6709
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 4 additions and 15 deletions

View file

@ -652,12 +652,8 @@ class Domain(TimeStampedModel, DomainHelper):
def isActive(self):
return self.state == Domain.State.CREATED
def map_epp_contact_to_public_contact(
self,
contact: eppInfo.InfoContactResultData,
contact_id,
contact_type
self, contact: eppInfo.InfoContactResultData, contact_id, contact_type
):
"""Maps the Epp contact representation to a PublicContact object.
@ -827,9 +823,7 @@ class Domain(TimeStampedModel, DomainHelper):
# If the for loop didn't do a return,
# then we know that it doesn't exist within cache
logger.info(
f"Requested contact {contact.registry_id} does not exist in cache."
)
logger.info(f"Requested contact {contact.registry_id} does not exist in cache.")
return None
# ForeignKey on UserDomainRole creates a "permissions" member for