From: erickson Date: Thu, 7 Feb 2008 20:13:44 +0000 (+0000) Subject: gracefully handle a null server resposne X-Git-Tag: osrf_rel_2_0_1~721 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ddb441e6fd88262b16424dc3828d710fc3e11405;p=OpenSRF.git gracefully handle a null server resposne git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1246 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/python/osrf/ses.py b/src/python/osrf/ses.py index 92b271b..ddd9009 100644 --- a/src/python/osrf/ses.py +++ b/src/python/osrf/ses.py @@ -209,7 +209,9 @@ class ClientSession(Session): 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