mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-21 00:34:43 +02:00
Squash bug
This commit is contained in:
parent
4de586005e
commit
cfcdd8826c
2 changed files with 4 additions and 2 deletions
|
@ -2116,8 +2116,9 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
if db_contact.count() == 0:
|
||||
# Doesn't run custom save logic, just saves to DB
|
||||
try:
|
||||
public_contact.save(skip_epp_save=True)
|
||||
logger.info(f"Created a new PublicContact: {public_contact}")
|
||||
with transaction.atomic():
|
||||
public_contact.save(skip_epp_save=True)
|
||||
logger.info(f"Created a new PublicContact: {public_contact}")
|
||||
# In rare cases, _add_missing_contacts_if_unknown will cause a race condition with this function.
|
||||
# This is because it calls .save(), which is called here.
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue