aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-06-11 21:27:33 +0300
committerFilipp Lepalaan <f@230.to>2013-06-11 21:27:33 +0300
commitd495f9a79cc9bf17469597727538265cfc93089d (patch)
treec7ab17c74cc5c28d1c012ea347c4f4f2970ebd69 /gsxws
parent07773b42eb347c6a0062f3063edcc3368c3693ec (diff)
downloadpy-gsxws-d495f9a79cc9bf17469597727538265cfc93089d.tar.gz
py-gsxws-d495f9a79cc9bf17469597727538265cfc93089d.tar.bz2
py-gsxws-d495f9a79cc9bf17469597727538265cfc93089d.zip
Fixing warranty check with IMEI
Diffstat (limited to 'gsxws')
-rw-r--r--gsxws/products.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gsxws/products.py b/gsxws/products.py
index c62021b..dc77dc2 100644
--- a/gsxws/products.py
+++ b/gsxws/products.py
@@ -55,8 +55,9 @@ class Product(GsxObject):
{'warrantyStatus': 'Out Of Warranty (No Coverage)',...
"""
if hasattr(self, "alternateDeviceId"):
- if not self.serialNumber:
+ if not hasattr(self, "serialNumber"):
self.activation()
+
try:
self.partNumbers = []
for k, v in parts: