fix: Properly handle attachments

pull/232/head
Raphaël Vinot 2018-05-04 16:06:48 +02:00
parent 457758b350
commit 1193e904bf
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class EMailObject(AbstractMISPObjectGenerator):
def attachments(self):
to_return = []
for attachment in self.__email.iter_attachments():
to_return.append((attachment.get_filename(), BytesIO(attachment.get_content().as_bytes())))
to_return.append((attachment.get_filename(), BytesIO(attachment.get_content())))
return to_return
def generate_attributes(self):