Open kawaegle opened 4 months ago
as proof
I add print(f"==={file_object}===") in order to see if fileobject is really at None
I get
===<_io.BytesIO object at 0x7efccc7a7560>===
So yes the mistake is realy just because of the variable file_object is create as a BytesIO
I run into a strange error when I update the library parsedmarc to 8.7.0
raise a
after investigate it seem to be an error from https://github.com/domainaware/parsedmarc/blob/77132b3fc57358da6ea01fa9bb54034254c99c5e/parsedmarc/__init__.py#L564 here the file_object is not None but the check to open path https://github.com/domainaware/parsedmarc/blob/77132b3fc57358da6ea01fa9bb54034254c99c5e/parsedmarc/__init__.py#L570
simple hack is to set file_object to none before the pass
as test this is the fix I made for my project (as patch)
Hope it help