diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-10-16 12:46:28 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-10-16 12:46:28 +0300 |
commit | 98169c529f524c8f67f3fe6a30d62448214eafc6 (patch) | |
tree | f1f4694cb5ab50a9ae0dd4c62fc7c0a6dcced4e4 /gsxws | |
parent | 6db0dca11454849de98746eb906c8e264428f7a4 (diff) | |
download | py-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.py | 4 |
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 |