aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
Diffstat (limited to 'gsxws')
-rw-r--r--gsxws/core.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gsxws/core.py b/gsxws/core.py
index b56fa7b..93dddb7 100644
--- a/gsxws/core.py
+++ b/gsxws/core.py
@@ -235,7 +235,10 @@ class GsxRequest(object):
ws.endheaders()
ws.send(xmldata)
- return ws.getresponse()
+ try:
+ return ws.getresponse()
+ except Exception, e:
+ raise GsxError('GSX connection failed: %s' % e)
def _submit(self, method, response=None, raw=False):
"Constructs and submits the final SOAP message"