Update of /cvsroot/mailman/mailman/Mailman/Handlers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv886/Mailman/Handlers

Modified Files:
      Tag: Release_2_1-maint
        Decorate.py 
Log Message:
Fix UnicodeDecodeError and UnicodeEncodeError to UnicodeError.
Both are introduced in Python2.3. UnicodeError catches both.


Index: Decorate.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/Decorate.py,v
retrieving revision 2.21.2.6
retrieving revision 2.21.2.7
diff -u -d -r2.21.2.6 -r2.21.2.7
--- Decorate.py 28 Mar 2005 01:37:51 -0000      2.21.2.6
+++ Decorate.py 8 May 2005 12:32:27 -0000       2.21.2.7
@@ -56,7 +56,7 @@
             username = mlist.getMemberName(member) or None
             try:
                 username = 
username.encode(Utils.GetCharSet(d['user_language']))
-            except (AttributeError, UnicodeEncodeError):
+            except (AttributeError, UnicodeError):
                 username = member
             d['user_name'] = username
             d['user_optionsurl'] = mlist.GetOptionsURL(member)

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to