Skip to content

Commit 8f52add

Browse files
committed
chg: Quick cleanup
1 parent 69ef173 commit 8f52add

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pymisp/tools/emailobject.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,7 @@ def _build_eml(self, message: EmailMessage, body: dict[str, Any], attachments: l
158158
body.get('html'),
159159
body.get('rtf')] if i is not None]
160160
# If this a non-multipart email then we only need to attach the payload
161-
if (
162-
message.get_content_maintype() != "multipart" and
163-
"application/ms-tnef" not in message.get("content-type", message.get_content_maintype())
164-
):
161+
if message.get_content_maintype() != "multipart" and message.get_content_type() != 'application/ms-tnef':
165162
for _body in body_objects:
166163
if "text/{}".format(_body['subtype']) == message.get_content_type():
167164
message.set_content(**_body)

0 commit comments

Comments
 (0)