aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-03-14 18:22:34 +0200
committerFilipp Lepalaan <f@230.to>2013-03-14 18:22:34 +0200
commitbcd1811204bfbb673ada35bd78d3bdb69c7557e6 (patch)
tree17ff4853762393b850ecd16f9cce70cc9669b231 /gsxws.py
parent162fd1efbae4d344a2a1d776519b558c87cb5db1 (diff)
downloadpy-gsxws-bcd1811204bfbb673ada35bd78d3bdb69c7557e6.tar.gz
py-gsxws-bcd1811204bfbb673ada35bd78d3bdb69c7557e6.tar.bz2
py-gsxws-bcd1811204bfbb673ada35bd78d3bdb69c7557e6.zip
Throw GsxError on Repair.mark_complete()
Diffstat (limited to 'gsxws.py')
-rwxr-xr-xgsxws.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gsxws.py b/gsxws.py
index e399cfa..f46bcb6 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -138,7 +138,7 @@ class GsxObject(object):
result = f(data)
return getattr(result, attr) if attr else result
except suds.WebFault, e:
- raise GsxError(code=e.fault.faultcode, message=e.fault.faultstring)
+ raise GsxError(fault=e)
def _make_type(self, new_dt):
"""
@@ -333,7 +333,8 @@ class GsxError(Exception):
else:
self.code = code
self.message = message
- self.data = (self.code, self.message)
+
+ self.data = (self.code, self.message)
def __getitem__(self, idx):
return self.data[idx]
@@ -768,7 +769,7 @@ def connect(
SESSION['userSessionId'] = result.userSessionId
return SESSION
except suds.WebFault, e:
- raise GsxError(code=e.fault.faultcode, message=e.fault.faultstring)
+ raise GsxError(fault=e)
def logout():
CLIENT.service.Logout()