mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 18:56:15 +02:00
Suggestions
This commit is contained in:
parent
acd804b548
commit
e6c44b2d9b
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue