bow down before the almighty linter

This commit is contained in:
David Kennedy 2023-10-17 21:59:33 -04:00
parent e248ae7760
commit a587920c45
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -1698,17 +1698,13 @@ class Domain(TimeStampedModel, DomainHelper):
old_cache_contacts = self._cache.get("contacts")
if fetch_contacts:
cleaned["contacts"] = self._get_contacts(
cleaned.get("_contacts", [])
)
cleaned["contacts"] = self._get_contacts(cleaned.get("_contacts", []))
if old_cache_hosts is not None:
logger.debug("resetting cleaned['hosts'] to old_cache_hosts")
cleaned["hosts"] = old_cache_hosts
if fetch_hosts:
cleaned["hosts"] = self._get_hosts(
cleaned.get("_hosts", [])
)
cleaned["hosts"] = self._get_hosts(cleaned.get("_hosts", []))
if old_cache_contacts is not None:
cleaned["contacts"] = old_cache_contacts