From 7296130142da0f475a8f03f38089abf856365e3b Mon Sep 17 00:00:00 2001 From: tkikuchi <> Date: Wed, 9 May 2007 20:54:30 +0000 Subject: 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 :-( --- Mailman/Handlers/Scrubber.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Mailman') 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. -- cgit v1.2.3