Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught error for DMARC query when ignoring unrelated records #130

Open
FestiveKyle opened this issue May 8, 2024 · 0 comments · May be fixed by #131
Open

Uncaught error for DMARC query when ignoring unrelated records #130

FestiveKyle opened this issue May 8, 2024 · 0 comments · May be fixed by #131

Comments

@FestiveKyle
Copy link
Contributor

There is an uncaught error when ignoring unrelated records during the DMARC check if there is no DMARC record present.

    "dmarc": {
        "record": null,
        "valid": false,
        "location": null,
        "error": "list index out of range"
    },

Stems from here in dmarc.py:

        dmarc_record = [record for record in records if record.startswith(
            txt_prefix)][0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant