aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces/email/interactive/send_pgp_mime.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-18 17:02:11 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-18 17:02:11 -0400
commit2fffcfc2df9369ce1a4b60225e441a81afd55cb5 (patch)
treea14828a323323c224aa2f5b08f1d77b3985f897f /interfaces/email/interactive/send_pgp_mime.py
parent9b67dfc5c49df7663c97d5b992ae967359cbcea1 (diff)
downloadbugseverywhere-2fffcfc2df9369ce1a4b60225e441a81afd55cb5.tar.gz
Assorted bugfixes to get reworked be-handle-mail working.
Diffstat (limited to 'interfaces/email/interactive/send_pgp_mime.py')
-rw-r--r--interfaces/email/interactive/send_pgp_mime.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/interfaces/email/interactive/send_pgp_mime.py b/interfaces/email/interactive/send_pgp_mime.py
index 3a60013..babd720 100644
--- a/interfaces/email/interactive/send_pgp_mime.py
+++ b/interfaces/email/interactive/send_pgp_mime.py
@@ -212,7 +212,7 @@ def flatten(msg, to_unicode=False):
g.flatten(msg)
text = fp.getvalue()
if to_unicode == True:
- encoding = msg.get_content_charset()
+ encoding = msg.get_content_charset() or "utf-8"
text = unicode(text, encoding=encoding)
return text