aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):