mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-04-04 20:58:53 +00:00
Fix parsing when auth record is missing
This commit is contained in:
@@ -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"] = []
|
||||
|
||||
Reference in New Issue
Block a user