mirror of https://github.com/MISP/PyMISP
fix: Properly handle attachments
parent
457758b350
commit
1193e904bf
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue