aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
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