Skip to content

Problem with variable referenced before assignment #1

@schmueller

Description

@schmueller

Hi,
when starting dmarc-analyse.py I get the following error:

Traceback (most recent call last):
File "/root/dmarc-analyse-main/dmarc-analyse.py", line 208, in
if getDMARCreportAttachment(rawMsg): # Get through the attachment(s)
File "/root/dmarc-analyse-main/dmarc-analyse.py", line 133, in getDMARCreportAttachment
return failDetectedInReport

I've added " failDetectedInReport=False" on line 27. in the def getDMARCreportAttachment(msg)
This solved the problem for me.
Please verify if this is the correct fix for the error.

Best regards Norbert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions