aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-08-06 11:08:55 +0300
committerFilipp Lepalaan <f@230.to>2013-08-06 11:08:55 +0300
commit4ec9b26232a1df546e36b9657c043818e329fc17 (patch)
treeeb0acab88c459e7ec46611e3627f3f2e720aceb4
parent89e1c6ab62d1d49582b99fc031289b09da4583f6 (diff)
downloadpy-gsxws-4ec9b26232a1df546e36b9657c043818e329fc17.tar.gz
py-gsxws-4ec9b26232a1df546e36b9657c043818e329fc17.tar.bz2
py-gsxws-4ec9b26232a1df546e36b9657c043818e329fc17.zip
Initialize code and message in GsxError
-rw-r--r--gsxws/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gsxws/core.py b/gsxws/core.py
index 15a5c62..f2d5324 100644
--- a/gsxws/core.py
+++ b/gsxws/core.py
@@ -124,8 +124,8 @@ def get_format(locale=GSX_LOCALE):
class GsxError(Exception):
def __init__(self, message=None, xml=None, url=None):
- if message is not None:
- self.message = message
+ self.code = ""
+ self.message = message
if xml is not None:
logging.debug(url)