From d78047ab44809537d21fe048d63a4c3c8e96df3d Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 18 Sep 2013 21:30:15 +0300 Subject: Fixed unlock check --- gsxws/products.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gsxws') 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): -- cgit v1.2.3