aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-09-18 21:30:15 +0300
committerFilipp Lepalaan <f@230.to>2013-09-18 21:30:15 +0300
commitd78047ab44809537d21fe048d63a4c3c8e96df3d (patch)
tree37e6a9749e2c8d8e6e75a1a7a99130c98a57fadc
parentd2947fdefabfb3e3c2f0341a85463b2cdc574d00 (diff)
downloadpy-gsxws-d78047ab44809537d21fe048d63a4c3c8e96df3d.tar.gz
py-gsxws-d78047ab44809537d21fe048d63a4c3c8e96df3d.tar.bz2
py-gsxws-d78047ab44809537d21fe048d63a4c3c8e96df3d.zip
Fixed unlock check
-rw-r--r--gsxws/products.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gsxws/products.py b/gsxws/products.py
index ae9e23a..de83b25 100644
--- a/gsxws/products.py
+++ b/gsxws/products.py
@@ -153,7 +153,8 @@ class Product(object):
"""
Returns true if this iOS device is unlocked
"""
- return ad.unlocked or ("unlock" in ad.nextTetherPolicyDetails)
+ policy = ad.nextTetherPolicyDetails or ''
+ return ad.unlocked or ("unlock" in policy)
@property
def should_check_activation(self):