From ba2cdd1fb27630dd3c382002e2dbfa79ec9cfb41 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 2 Jan 2008 18:53:30 +0000 Subject: [PATCH] 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 --- src/python/osrf/ex.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.""" -- 2.11.0