Changeset 1778 for pykota/trunk/pykota

Show
Ignore:
Timestamp:
10/05/04 12:05:04 (20 years ago)
Author:
jalet
Message:

UnicodeEncodeError? isn't defined in Python2.1

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/sql.py

    r1777 r1778  
    2222# 
    2323# $Log$ 
     24# Revision 1.54  2004/10/05 10:05:04  jalet 
     25# UnicodeEncodeError isn't defined in Python2.1 
     26# 
    2427# Revision 1.53  2004/10/05 09:59:20  jalet 
    2528# Restore compatibility with Python 2.1 
     
    110113                        try : 
    111114                            fields[j] = unicode(field, "UTF-8").encode(self.tool.getCharset())  
    112                         except UnicodeEncodeError : # takes care of old jobs in history not stored as UTF-8     
     115                        except UnicodeError : # takes care of old jobs in history not stored as UTF-8     
    113116                            pass 
    114117                entries[i] = tuple(fields)