aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-10-16 12:46:28 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-10-16 12:46:28 +0300
commit98169c529f524c8f67f3fe6a30d62448214eafc6 (patch)
treef1f4694cb5ab50a9ae0dd4c62fc7c0a6dcced4e4 /gsxws
parent6db0dca11454849de98746eb906c8e264428f7a4 (diff)
downloadpy-gsxws-98169c529f524c8f67f3fe6a30d62448214eafc6.tar.gz
py-gsxws-98169c529f524c8f67f3fe6a30d62448214eafc6.tar.bz2
py-gsxws-98169c529f524c8f67f3fe6a30d62448214eafc6.zip
Fix for repairConfirmation/messages issue
Diffstat (limited to 'gsxws')
-rw-r--r--gsxws/repairs.py4
1 files changed, 2 insertions, 2 deletions
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