From 053f565171933eb6a36704da06bb93934f1b651b Mon Sep 17 00:00:00 2001 From: Jason Michalski Date: Wed, 26 Mar 2008 21:34:24 -0500 Subject: [PATCH] Moved log statment so it will work when there is an exception --- mind.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mind.py b/mind.py index d048738..85dc569 100644 --- a/mind.py +++ b/mind.py @@ -95,13 +95,14 @@ class Mind: xml = ElementTree.parse(result).find('.') + self.__log('__bodyOfferModify\n%s\n\n%sg' % (data, ElementTree.tostring(xml))) + if xml.findtext('state') != 'complete': raise Exception(ElementTree.tostring(xml)) offer_id = xml.findtext('offerId') content_id = offer_id.replace('of','ct') - self.__log('__bodyOfferModify\n%s\n\n%sg' % (data, ElementTree.tostring(xml))) return offer_id, content_id -- 2.11.4.GIT