aboutsummaryrefslogtreecommitdiffstats
path: root/gsx.py
diff options
context:
space:
mode:
Diffstat (limited to 'gsx.py')
-rwxr-xr-xgsx.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gsx.py b/gsx.py
index 36b3185..fc14513 100755
--- a/gsx.py
+++ b/gsx.py
@@ -4,6 +4,7 @@ import re
import os
import json
import base64
+import suds
from suds.client import Client
from datetime import date, time
@@ -131,6 +132,15 @@ class CompTia:
def modifiers(self):
return self.data['modifiers']
+class GsxError(suds.WebFault):
+ def __init__(self, message, code=None):
+ super(GsxError, self).__init__()
+ self.code = code
+ sys.stderr.write("%s\n" % message)
+
+ def __unicode__(self):
+ return self.message
+
class Lookup(GsxObject):
def parts(self):
"""