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

export to csv fails when BIMI flag is included #126

Open
EmailKarma opened this issue Feb 6, 2024 · 1 comment
Open

export to csv fails when BIMI flag is included #126

EmailKarma opened this issue Feb 6, 2024 · 1 comment

Comments

@EmailKarma
Copy link

I believe part of this is related to the "fields" list in init.py missing the [BIMI values] for the CSV output. I looked but couldn't figure out where the missing values originate from to attempt to make adjustments.

checkdmarc --skip-tls example.com -b default -n 9.9.9.9 -o c:\temp\example.csv

Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\redacted\AppData\Local\Programs\Python\Python312\Scripts\checkdmarc.exe_main
.py", line 7, in
File "C:\Users\redacted\AppData\Local\Programs\Python\Python312\Lib\site-packages\checkdmarc_cli.py", line 122, in main
output_to_file(path, results_to_csv(results))
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\redacted\AppData\Local\Programs\Python\Python312\Lib\site-packages\checkdmarc_init
.py", line 388, in results_to_csv
rows = results_to_csv_rows(results)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\redacted\AppData\Local\Programs\Python\Python312\Lib\site-packages\checkdmarc_init
.py", line 273, in results_to_csv_rows
row["bimi_warnings"] = "|".join(_bimi["warnings"])
~~~~~^^^^^^^^^^^^
KeyError: 'warnings'

@EmailKarma
Copy link
Author

I realize it would be helpful to mention I'm running v 5.3.1

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

No branches or pull requests

1 participant