From f9e57022de88730da643f5fb4efe5599c879c6ad Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 14 Dec 2015 16:11:16 +0100 Subject: [accounts] Strict comparison for numbers --- module/plugins/accounts/PremiumizeMe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/accounts/PremiumizeMe.py') diff --git a/module/plugins/accounts/PremiumizeMe.py b/module/plugins/accounts/PremiumizeMe.py index bd7333843..66ecfb214 100644 --- a/module/plugins/accounts/PremiumizeMe.py +++ b/module/plugins/accounts/PremiumizeMe.py @@ -29,7 +29,7 @@ class PremiumizeMe(MultiAccount): data = json.loads(answer) #: If account is not valid thera are no hosters available - if data['status'] != 200: + if data['status'] is not 200: return [] #: Extract hosters from json file @@ -56,7 +56,7 @@ class PremiumizeMe(MultiAccount): status = self.get_account_status(user, password) #: Check if user and password are valid - if status['status'] != 200: + if status['status'] is not 200: self.fail_login() -- cgit v1.2.3