From 4ec9b26232a1df546e36b9657c043818e329fc17 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 6 Aug 2013 11:08:55 +0300 Subject: Initialize code and message in GsxError --- gsxws/core.py | 4 ++-- 1 file 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) -- cgit v1.2.3