From 572fdfcc9fd3ab84f28665d1e55b4168c5d7b12e Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 21 Oct 2013 15:33:27 +0300 Subject: Fixed GsxError message argument --- gsxws/core.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gsxws') diff --git a/gsxws/core.py b/gsxws/core.py index 8fba5b5..5c771af 100644 --- a/gsxws/core.py +++ b/gsxws/core.py @@ -150,6 +150,9 @@ class GsxError(Exception): self.codes = [] self.messages = [] + if isinstance(message, basestring): + self.messages.append(message) + if xml is not None: logging.debug(url) logging.debug(xml) -- cgit v1.2.3