[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7607 - trunk/gnue-common/src/apps
From: |
reinhard |
Subject: |
[gnue] r7607 - trunk/gnue-common/src/apps |
Date: |
Fri, 17 Jun 2005 03:14:02 -0500 (CDT) |
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 ())
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7607 - trunk/gnue-common/src/apps,
reinhard <=