From 716a740900dbee25df4b272324c1465969c35789 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 6 Jun 2013 14:40:41 +0300 Subject: Use hasattr for CA dispatchID check --- gsxws/repairs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gsxws') diff --git a/gsxws/repairs.py b/gsxws/repairs.py index b22676c..407fc25 100644 --- a/gsxws/repairs.py +++ b/gsxws/repairs.py @@ -224,7 +224,7 @@ class CarryInRepair(Repair): """ self._namespace = "asp:" - if not getattr(self, "repairConfirmationNumber"): + if not hasattr(self, "repairConfirmationNumber"): self.repairConfirmationNumber = self.dispatchId del(self.dispatchId) -- cgit v1.2.3