Fix parsing when auth record is missing

This commit is contained in:
Sean Whalen
2024-10-24 17:14:02 -04:00
committed by GitHub
parent ab280d7a34
commit bb722e651a

View File

@@ -169,7 +169,7 @@ def _parse_report_record(
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"] = []