cisagov / trustymail_reporter

Generate Trustworthy Email reports based on scan data
Creative Commons Zero v1.0 Universal
10 stars 4 forks source link

Handle null auth_results #42

Closed jsf9k closed 3 years ago

jsf9k commented 3 years ago

๐Ÿ—ฃ Description

This pull request makes two small changes in order to gracefully handle the case where auth_results is None.

๐Ÿ’ญ Motivation and context

There is at least one such record in the DMARC database, even though the DMARC schema states that there must be at least one entry in the auth_results list.

๐Ÿงช Testing

I have done several full reporting runs with these changes.

โœ… Checklist

jsf9k commented 3 years ago

It does the thing! It would be nice to have an issue and a comment to track the schema's failure to validate as we expect.

See cisagov/dmarc-import#8.