Suggestions

This commit is contained in:
zandercymatics 2023-10-10 11:29:55 -06:00
parent acd804b548
commit e6c44b2d9b
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -1293,7 +1293,7 @@ class Domain(TimeStampedModel, DomainHelper):
except RegistryError as e:
logger.error(e)
except TransitionNotAllowed:
except TransitionNotAllowed as err:
# Fixes a bug with _fetch_cache trying to create
# a deleted domain, as cache gets cleared on delete.
# Instead, serve what we have locally.
@ -1332,6 +1332,8 @@ class Domain(TimeStampedModel, DomainHelper):
cleaned = {k: v for k, v in cache.items() if v is not ...}
self._cache = cleaned
else:
raise err
def _get_or_create_public_contact(self, public_contact: PublicContact):