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