Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ilappe committed Sep 14, 2023
1 parent 9fd65c3 commit a1f6334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse_emails/handle_eml.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def handle_eml(file_path, b64=False, file_name=None, parse_only_headers=False, m

elif part.get_filename()\
or "attachment" in part.get("Content-Disposition", "")\
or ("image" in part.get("Content-Type") and part.get("Content-Transfer-Encoding") == "base64"):
or ("image" in part.get("Content-Type", '') and part.get("Content-Transfer-Encoding") == "base64"):

attachment_content_id = part.get('Content-ID')
attachment_content_disposition = part.get('Content-Disposition')
Expand Down

0 comments on commit a1f6334

Please sign in to comment.