From 446c018920705d362ac27d70c0e05692fa37758d Mon Sep 17 00:00:00 2001 From: bendem Date: Mon, 3 Feb 2025 21:20:52 +0100 Subject: [PATCH] do not stop processing when we encounter an invalid dmarc report (#587) --- parsedmarc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsedmarc/__init__.py b/parsedmarc/__init__.py index b3165d8..220fbb3 100644 --- a/parsedmarc/__init__.py +++ b/parsedmarc/__init__.py @@ -1294,7 +1294,7 @@ def parse_report_email( "is not a valid " "aggregate DMARC report: {1}".format(subject, e) ) - raise ParserError(error) + raise InvalidDMARCReport(error) except Exception as e: error = "Unable to parse message with " 'subject "{0}": {1}'.format(