aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authortkikuchi <>2005-04-21 04:30:36 +0000
committertkikuchi <>2005-04-21 04:30:36 +0000
commit6b59d4fe0c849eebeeb938299b5ba3736dfc7941 (patch)
treebd9130ab1e2a563f483fae88bc3992efe11de6ed /Mailman
parent1700beb5b77dbc501c878daae05ca60e9650fcca (diff)
downloadmailman2-6b59d4fe0c849eebeeb938299b5ba3736dfc7941.tar.gz
mailman2-6b59d4fe0c849eebeeb938299b5ba3736dfc7941.tar.xz
mailman2-6b59d4fe0c849eebeeb938299b5ba3736dfc7941.zip
get_content_charset() should return failobj on error.
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Message.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Mailman/Message.py b/Mailman/Message.py
index e8dd5953..a5406778 100644
--- a/Mailman/Message.py
+++ b/Mailman/Message.py
@@ -188,6 +188,15 @@ class Message(email.Message.Message):
authors.append(address)
return authors
+ def get_content_charset(self, failobj=None):
+ """email.Message.Message.get_content_charset() should return failobj
+ on error.
+ """
+ try:
+ return email.Message.Message.get_content_charset(self, failobj)
+ except:
+ return failobj
+
class UserNotification(Message):