Skip to content

Skip extraction of text from Outlook .msg files where the file extension is null or missing (e.g. SignedAttachment)#43

Open
martinburchell wants to merge 3 commits intomasterfrom
outlook-msg-fixups
Open

Skip extraction of text from Outlook .msg files where the file extension is null or missing (e.g. SignedAttachment)#43
martinburchell wants to merge 3 commits intomasterfrom
outlook-msg-fixups

Conversation

@martinburchell
Copy link
Collaborator

Fixes two related bugs discovered when extracting text from Outlook .msg attachments in the real world:

  • 'NoneType' object has no attribute 'replace'
  • 'SignedAttachment' object has no attribute 'extension'

These were because:

  • Not all Outlook .msg files have extension set.
  • Some have the extension set but it is null.

Currently we determine the types of these attachments by their file extensions so we can't really do anything with the text, but we can handle the errors more gracefully.

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

Successfully merging this pull request may close these issues.

1 participant