summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RapiduNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/RapiduNet.py')
-rw-r--r--module/plugins/accounts/RapiduNet.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/accounts/RapiduNet.py b/module/plugins/accounts/RapiduNet.py
index 2566aacf6..c11eb9214 100644
--- a/module/plugins/accounts/RapiduNet.py
+++ b/module/plugins/accounts/RapiduNet.py
@@ -37,11 +37,11 @@ class RapiduNet(Account):
premium = True
m = re.search(self.VALID_UNTIL_PATTERN, html)
- if m:
+ if m is not None:
validuntil = time.time() + (86400 * int(m.group(1)))
m = re.search(self.TRAFFIC_LEFT_PATTERN, html)
- if m:
+ if m is not None:
trafficleft = self.parse_traffic(m.group(1))
return {'validuntil': validuntil, 'trafficleft': trafficleft, 'premium': premium}