Commits

jonas  committed 0b366a1

Catch UnicodeError instead of just UnicodeEncodingError.

  • Participants
  • Parent commits eab5818
  • Branches trunk

Comments (0)

Files changed (1)

File trac/util.py

     try:
         utf = unicode(text, 'utf-8')
         return  utf.encode('iso-8859-15')
-    except UnicodeEncodeError:
+    except UnicodeError:
         return text