mirror of
https://github.com/craigerl/aprsd.git
synced 2026-06-17 13:18:52 -04:00
found another .decode that didn't include errors='ignore'
This commit is contained in:
+1
-1
@@ -153,7 +153,7 @@ def parse_email(msgid, data, server):
|
||||
from_addr = "noaddr"
|
||||
LOG.debug("Got a message from '{}'".format(from_addr))
|
||||
m = server.fetch([msgid], ['RFC822'])
|
||||
msg = email.message_from_string(m[msgid][b'RFC822'].decode())
|
||||
msg = email.message_from_string(m[msgid][b'RFC822'].decode(errors='ignore'))
|
||||
if msg.is_multipart():
|
||||
text = ""
|
||||
html = None
|
||||
|
||||
Reference in New Issue
Block a user