[Opensrf-commits] r1246 - trunk/src/python/osrf

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Feb 7 15:42:22 EST 2008


Author: erickson
Date: 2008-02-07 15:13:44 -0500 (Thu, 07 Feb 2008)
New Revision: 1246

Modified:
   trunk/src/python/osrf/ses.py
Log:
gracefully handle a null server resposne

Modified: trunk/src/python/osrf/ses.py
===================================================================
--- trunk/src/python/osrf/ses.py	2008-02-07 18:58:50 UTC (rev 1245)
+++ trunk/src/python/osrf/ses.py	2008-02-07 20:13:44 UTC (rev 1246)
@@ -209,7 +209,9 @@
         ses = ClientSession(service)
         req = ses.request2(method, list(args))
         resp = req.recv()
-        data = resp.content()
+        data = None
+        if resp:
+            data = resp.content()
         req.cleanup()
         ses.cleanup()
         return data



More information about the opensrf-commits mailing list