From: erickson Date: Wed, 2 Jan 2008 18:53:30 +0000 (+0000) Subject: changed str to msg to prevent clobbering. changed repr call to unicode, which seems... X-Git-Tag: osrf_rel_2_0_1~770 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ba2cdd1fb27630dd3c382002e2dbfa79ec9cfb41;p=OpenSRF.git changed str to msg to prevent clobbering. changed repr call to unicode, which seems more appropriate for human-readable error message git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1197 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/python/osrf/ex.py b/src/python/osrf/ex.py index 841f925..af7177e 100644 --- a/src/python/osrf/ex.py +++ b/src/python/osrf/ex.py @@ -27,10 +27,10 @@ class OSRFException(Exception): 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."""