summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/qmauth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/qmauth.py b/script/qmauth.py
index 7803483..052b8dd 100755
--- a/script/qmauth.py
+++ b/script/qmauth.py
@@ -202,7 +202,7 @@ def count_mails(f, subfolder):
def _get_body(mail):
if not mail.is_multipart():
if mail.get_content_maintype() == 'text':
- return mail.get_payload(decode=True).decode()
+ return mail.get_payload(decode=True).decode(errors='replace')
else:
return mail.get_payload()