[Opensrf-commits] r1197 - trunk/src/python/osrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jan 2 14:17:06 EST 2008
Author: erickson
Date: 2008-01-02 13:53:30 -0500 (Wed, 02 Jan 2008)
New Revision: 1197
Modified:
trunk/src/python/osrf/ex.py
Log:
changed str to msg to prevent clobbering. changed repr call to unicode, which seems more appropriate for human-readable error message
Modified: trunk/src/python/osrf/ex.py
===================================================================
--- trunk/src/python/osrf/ex.py 2008-01-01 02:00:38 UTC (rev 1196)
+++ trunk/src/python/osrf/ex.py 2008-01-02 18:53:30 UTC (rev 1197)
@@ -27,10 +27,10 @@
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:
- 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."""
More information about the opensrf-commits
mailing list