summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar synweap15 <shamdog+github@gmail.com> 2014-07-09 12:40:13 +0200
committerGravatar synweap15 <shamdog+github@gmail.com> 2014-07-09 12:40:13 +0200
commit1df1779ded75e863994449ba034ed31ab2018ddc (patch)
tree164cd4dbafc7b3da1384c1e2f0f64e6a0ef1df99
parentfail messages localization and dictionary (diff)
downloadpyload-1df1779ded75e863994449ba034ed31ab2018ddc.tar.xz
remove explicit "is not None"
-rw-r--r--module/plugins/accounts/NoPremiumPl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/accounts/NoPremiumPl.py b/module/plugins/accounts/NoPremiumPl.py
index 49c9b7653..5f70440ac 100644
--- a/module/plugins/accounts/NoPremiumPl.py
+++ b/module/plugins/accounts/NoPremiumPl.py
@@ -43,7 +43,7 @@ class NoPremiumPl(Account):
premium = False
valid_untill = -1
- if "expire" in result.keys() and result["expire"] is not None:
+ if "expire" in result.keys() and result["expire"]:
premium = True
valid_untill = mktime(datetime.fromtimestamp(int(result["expire"])).timetuple())
traffic_left = result["balance"] * 1024