Skip to content

Commit

Permalink
fixup! new: Refactored emailobject generator
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubOnderka committed Oct 1, 2020
1 parent 5e3acd9 commit 29d5685
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pymisp/tools/emailobject.py
Expand Up @@ -95,7 +95,7 @@ def attempt_decoding(bytes_io: BytesIO) -> EmailMessage:
pass

raise Exception(
"EmailObject does not know how to decode binary blob passed to it. Object may not be an email. If this is an email please submit it as an issue to PyMISP so we can add support.")
"EmailObject does not know how to decode binary blob passed to it. Object may not be an email. If this is an email please submit it as an issue to PyMISP so we can add support.")

@property
def email(self) -> EmailMessage:
Expand Down Expand Up @@ -208,4 +208,3 @@ def __generate_received(self):
continue # skip header if IP not found or is private

self.add_attribute("received-header-ip", value=str(ip), comment=received["from"])

0 comments on commit 29d5685

Please sign in to comment.