commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r6183 - trunk/gnue-common/src/rpc


From: johannes
Subject: r6183 - trunk/gnue-common/src/rpc
Date: Tue, 10 Aug 2004 02:45:39 -0500 (CDT)

Author: johannes
Date: 2004-08-10 02:45:38 -0500 (Tue, 10 Aug 2004)
New Revision: 6183

Modified:
   trunk/gnue-common/src/rpc/client.py
Log:
Create the DistantError with unicode messages


Modified: trunk/gnue-common/src/rpc/client.py
===================================================================
--- trunk/gnue-common/src/rpc/client.py 2004-08-10 04:42:21 UTC (rev 6182)
+++ trunk/gnue-common/src/rpc/client.py 2004-08-10 07:45:38 UTC (rev 6183)
@@ -108,12 +108,12 @@
   server side traceback.
   """
   def __init__ (self, traceback):
-    self.detail = traceback
+    self.detail = unicode (traceback, 'utf-8')
     self.type = ''
     message = ''
 
     # Search for start of Exception type/value part
-    list = string.split (traceback, '\n')
+    list = string.split (self.detail, '\n')
     for i in range (1, len (list) - 1):
       if len (list [i]) > 0 and list [i] [0] != ' ':
         info = string.split (list [i], ': ', 1)
@@ -121,6 +121,7 @@
           self.type = info [0]
           message = string.join ([info [1]] + list [i+1:], '\n')
           break
+
     Error.__init__ (self, message)
 
 # =============================================================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]