aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Commands/cmd_subscribe.py
diff options
context:
space:
mode:
authortkikuchi <>2005-05-08 12:32:27 +0000
committertkikuchi <>2005-05-08 12:32:27 +0000
commitd9378753acda90d6b08aebcc2e08cc6e654ab580 (patch)
treef19ffb8fe969b7c324689c9c5a7332f0c857c12b /Mailman/Commands/cmd_subscribe.py
parent3be6bfd499c2e2714c197dabc90c625171bc2c4c (diff)
downloadmailman2-d9378753acda90d6b08aebcc2e08cc6e654ab580.tar.gz
mailman2-d9378753acda90d6b08aebcc2e08cc6e654ab580.tar.xz
mailman2-d9378753acda90d6b08aebcc2e08cc6e654ab580.zip
Fix UnicodeDecodeError and UnicodeEncodeError to UnicodeError.
Both are introduced in Python2.3. UnicodeError catches both.
Diffstat (limited to 'Mailman/Commands/cmd_subscribe.py')
-rw-r--r--Mailman/Commands/cmd_subscribe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/Commands/cmd_subscribe.py b/Mailman/Commands/cmd_subscribe.py
index 2b3304b4..5dac09ad 100644
--- a/Mailman/Commands/cmd_subscribe.py
+++ b/Mailman/Commands/cmd_subscribe.py
@@ -88,7 +88,7 @@ def process(res, args):
h = make_header(decode_header(realname))
# BAW: in Python 2.2, use just unicode(h)
realname = h.__unicode__()
- except UnicodeDecodeError:
+ except UnicodeError:
realname = u''
# Coerce to byte string if uh contains only ascii
try: