diff --git a/src/parsedmarc/parser.py b/src/parsedmarc/parser.py index 4ac1b86..a1274fd 100644 --- a/src/parsedmarc/parser.py +++ b/src/parsedmarc/parser.py @@ -486,7 +486,8 @@ def _parse_aggregate_report_record(self, record: dict) -> dict: else: lowered_from = "" new_record["identifiers"]["header_from"] = lowered_from - if record["auth_results"] is not None: + + if isinstance(record["auth_results"], dict): auth_results = record["auth_results"].copy() if "spf" not in auth_results: auth_results["spf"] = []