parsers: Don't accept multipart/related for body
This commit is contained in:
parent
6565bdd94d
commit
f43ea80f3b
@ -100,7 +100,7 @@ class MBNAParser(TransactionParser):
|
||||
)
|
||||
|
||||
def extract(self, msg: EmailMessage) -> Optional[Transaction]:
|
||||
body = msg.get_body()
|
||||
body = msg.get_body(preferencelist=("html", "plain"))
|
||||
if body is None:
|
||||
raise TransactionParsingFailed("No body of message found")
|
||||
content = body.get_content()
|
||||
|
Loading…
x
Reference in New Issue
Block a user