domainaware / checkdmarc

A parser for SPF and DMARC DNS records
https://domainaware.github.io/checkdmarc
Apache License 2.0
251 stars 77 forks source link

Error parsing rua and ruf when exporting to CSV #76

Closed dmuse89 closed 1 year ago

dmuse89 commented 2 years ago

Using python3.9.12, I am running into this error on some domains when exporting to a CSV format. This error does not present itself when exporting to JSON on the exact same domain.

example: checkdmarc aboutyou.de -f csv

Traceback (most recent call last):
  File "~/envs/checkdmarc/bin/checkdmarc", line 8, in <module>
    sys.exit(_main())
  File "~/envs/checkdmarc/lib/python3.9/site-packages/checkdmarc.py", line 2627, in _main
    results = results_to_csv(results)
  File "~/envs/checkdmarc/lib/python3.9/site-packages/checkdmarc.py", line 2534, in results_to_csv
    rows = results_to_csv_rows(results)
  File "~/envs/checkdmarc/lib/python3.9/site-packages/checkdmarc.py", line 2500, in results_to_csv_rows
    addresses = list(map(lambda u: u["scheme"] + ":" +
  File "~/envs/checkdmarc/lib/python3.9/site-packages/checkdmarc.py", line 2500, in <lambda>
    addresses = list(map(lambda u: u["scheme"] + ":" +
TypeError: string indices must be integers
tchenChemo commented 2 years ago

I have the same issue too checkdmarc c:\domainlist.csv -f csv -o c:\output.csv. throwing the same error

seanthegeek commented 1 year ago

Turns out this was fix a while back.