From 767fe8888901fb518eb5da4290b7dd448ab387af Mon Sep 17 00:00:00 2001 From: Herman Fischer Date: Tue, 9 Jul 2024 22:21:42 -0700 Subject: [PATCH] Tolerate absent efmIxdsType in EdgarRenderer --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 67c93329..25892975 100644 --- a/__init__.py +++ b/__init__.py @@ -782,7 +782,7 @@ def processInstance(self, options, modelXbrl, filing, report): # skip rendering if major errors and abortOnMajorError # errorCountDuringValidation = len(Utils.xbrlErrors(modelXbrl)) # won't work for all possible logHandlers (some emit immediately) - attachmentDocumentType = getattr(modelXbrl, "efmIxdsType") + attachmentDocumentType = getattr(modelXbrl, "efmIxdsType", None) # strip on error if preceding primary inline instance had no error and exhibitType strips on error stripExhibitOnError = self.success and bool( filing.exhibitTypesStrippingOnErrorPattern.match(attachmentDocumentType or "")) @@ -1008,7 +1008,7 @@ def filingEnd(self, cntlr, options, filesource, filing, sourceZipStream=None, *a privateRefDocs = set() for report in filing.reports: # note that there is no efmIxdsType if EFM validation is not enabled - if (filing.exhibitTypesPrivateNotDisseminated.match(getattr(report.modelXbrl, "efmIxdsType") or "") or + if (filing.exhibitTypesPrivateNotDisseminated.match(getattr(report.modelXbrl, "efmIxdsType", None) or "") or getattr(report, "securityClassification", None) == "confidential"): report.isNotDisseminated = True privateFilesNotDisseminated.update(report.basenames)