Author: reinhard
Date: 2005-06-17 03:14:01 -0500 (Fri, 17 Jun 2005)
New Revision: 7607
Modified:
trunk/gnue-common/src/apps/errors.py
Log:
Be more tolerant against exceptions with non-ASCII characters.
Modified: trunk/gnue-common/src/apps/errors.py
===================================================================
--- trunk/gnue-common/src/apps/errors.py 2005-06-17 06:59:18 UTC (rev
7606)
+++ trunk/gnue-common/src/apps/errors.py 2005-06-17 08:14:01 UTC (rev
7607)
@@ -261,8 +261,9 @@
if count is not None:
del lines [1:count + 1]
- name = unicode ("%s" % aType, i18n.getencoding ()).split ('.') [-1]
- message = unicode ("%s" % aValue, i18n.getencoding ())
+ name = unicode ("%s" % aType, i18n.getencoding (), 'replace')
+ name = name.split ('.') [-1]
+ message = unicode ("%s" % aValue, i18n.getencoding (), 'replace')
detail = string.join (lines)
if isinstance (detail, types.StringType):
detail = unicode (detail, i18n.getencoding ())
_______________________________________________
Commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue