aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers
diff options
context:
space:
mode:
authortkikuchi <>2007-05-09 20:54:30 +0000
committertkikuchi <>2007-05-09 20:54:30 +0000
commit7296130142da0f475a8f03f38089abf856365e3b (patch)
tree12388aeb7a24571d56b7a87f8e490c80a7e3c6ef /Mailman/Handlers
parent315ab849e1b7e7e710ff79b6c70edebb5c8c3821 (diff)
downloadmailman2-7296130142da0f475a8f03f38089abf856365e3b.tar.gz
mailman2-7296130142da0f475a8f03f38089abf856365e3b.tar.xz
mailman2-7296130142da0f475a8f03f38089abf856365e3b.zip
base64 codec raises 'AssertionError'. This should not occur in normal case
but it looks like thare is a buggy MUA or spammer who declairs like so: Content-Type: text/plain; charset=base64 :-(
Diffstat (limited to 'Mailman/Handlers')
-rw-r--r--Mailman/Handlers/Scrubber.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/Handlers/Scrubber.py b/Mailman/Handlers/Scrubber.py
index fd35cbdd..1ae849b1 100644
--- a/Mailman/Handlers/Scrubber.py
+++ b/Mailman/Handlers/Scrubber.py
@@ -376,7 +376,7 @@ Url : %(url)s
if partcharset and partcharset <> charset:
try:
t = unicode(t, partcharset, 'replace')
- except (UnicodeError, LookupError, ValueError):
+ except (UnicodeError, LookupError, ValueError, AssertionError):
# Replace funny characters. We use errors='replace' for
# both calls since the first replace will leave U+FFFD,
# which isn't ASCII encodeable.