diff options
author | Filipp Lepalaan <f@230.to> | 2013-03-14 18:22:34 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-03-14 18:22:34 +0200 |
commit | bcd1811204bfbb673ada35bd78d3bdb69c7557e6 (patch) | |
tree | 17ff4853762393b850ecd16f9cce70cc9669b231 /gsxws.py | |
parent | 162fd1efbae4d344a2a1d776519b558c87cb5db1 (diff) | |
download | py-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-x | gsxws.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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() |