From 98169c529f524c8f67f3fe6a30d62448214eafc6 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 16 Oct 2015 12:46:28 +0300 Subject: Fix for repairConfirmation/messages issue --- gsxws/repairs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gsxws') diff --git a/gsxws/repairs.py b/gsxws/repairs.py index 47aacc3..768ff06 100644 --- a/gsxws/repairs.py +++ b/gsxws/repairs.py @@ -280,8 +280,8 @@ class CarryInRepair(Repair): result = self._submit("repairData", "CreateCarryIn", "repairConfirmation") if hasattr(result, 'repairConfirmation'): - messages = result.repairConfirmation.messages - raise GsxError(messages) + if hasattr(result.repairConfirmation, 'messages'): + raise GsxError(result.repairConfirmation.messages) self.dispatchId = result.confirmationNumber return result -- cgit v1.2.3