mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-01 15:34:53 +02:00
Update domain.py
This commit is contained in:
parent
e8ac747ddc
commit
24eadb8135
1 changed files with 2 additions and 2 deletions
|
@ -1781,13 +1781,13 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
"""Try to fetch info about a contact. Create it if it does not exist."""
|
||||
logger.info("_get_or_create_contact() -> Fetching contact info")
|
||||
try:
|
||||
return self._request_contact_info(contact=contact)
|
||||
return self._request_contact_info(contact)
|
||||
except RegistryError as e:
|
||||
if e.code == ErrorCode.OBJECT_DOES_NOT_EXIST:
|
||||
logger.info("_get_or_create_contact()-> contact doesn't exist so making it")
|
||||
contact.domain = self
|
||||
contact.save() # this will call the function based on type of contact
|
||||
return self._request_contact_info(contact)
|
||||
return self._request_contact_info(contact=contact)
|
||||
else:
|
||||
logger.error(
|
||||
"Registry threw error for contact id %s"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue