minimal getter building form for dsdata

This commit is contained in:
David Kennedy 2023-10-02 17:13:51 -04:00
parent ef2b8494cb
commit 12ae675772
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 21 additions and 13 deletions

View file

@ -282,7 +282,13 @@ class Domain(TimeStampedModel, DomainHelper):
@Cache
def dnssecdata(self) -> extensions.DNSSECExtension:
return self._get_property("dnssecdata")
try:
return self._get_property("dnssecdata")
except Exception as err:
# Don't throw error as this is normal for a new domain
# TODO - 433 error handling ticket should address this
logger.info("Domain does not have dnssec data defined %s" % err)
return None
@dnssecdata.setter # type: ignore
def dnssecdata(self, _dnssecdata: extensions.DNSSECExtension):