changed str to msg to prevent clobbering. changed repr call to unicode, which seems...
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 2 Jan 2008 18:53:30 +0000 (18:53 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 2 Jan 2008 18:53:30 +0000 (18:53 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1197 9efc2488-bf62-4759-914b-345cdb29e865

src/python/osrf/ex.py

index 841f925..af7177e 100644 (file)
@@ -27,10 +27,10 @@ class OSRFException(Exception):
 
 class NetworkException(OSRFException):
     def __str__(self):
 
 class NetworkException(OSRFException):
     def __str__(self):
-        str = "\nUnable to communicate with the OpenSRF network"
+        msg = "\nUnable to communicate with the OpenSRF network"
         if self.info:
         if self.info:
-            str = str + '\n' + repr(self.info)
-        return str
+            msg = msg + '\n' + unicode(self.info)
+        return msg
 
 class OSRFProtocolException(OSRFException):
     """Raised when something happens during opensrf network stack processing."""
 
 class OSRFProtocolException(OSRFException):
     """Raised when something happens during opensrf network stack processing."""