summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/BayfilesCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/BayfilesCom.py')
-rw-r--r--module/plugins/accounts/BayfilesCom.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/BayfilesCom.py b/module/plugins/accounts/BayfilesCom.py
index 3f3086347..8f11af2ef 100644
--- a/module/plugins/accounts/BayfilesCom.py
+++ b/module/plugins/accounts/BayfilesCom.py
@@ -33,17 +33,17 @@ class BayfilesCom(Account):
for _ in xrange(2):
response = json_loads(req.load("http://api.bayfiles.com/v1/account/info"))
self.logDebug(response)
- if not response["error"]:
+ if not response['error']:
break
- self.logWarning(response["error"])
+ self.logWarning(response['error'])
self.relogin(user)
return {"premium": bool(response['premium']), "trafficleft": -1,
"validuntil": response['expires'] if response['expires'] >= int(time()) else -1}
def login(self, user, data, req):
- response = json_loads(req.load("http://api.bayfiles.com/v1/account/login/%s/%s" % (user, data["password"])))
+ response = json_loads(req.load("http://api.bayfiles.com/v1/account/login/%s/%s" % (user, data['password'])))
self.logDebug(response)
- if response["error"]:
- self.logError(response["error"])
+ if response['error']:
+ self.logError(response['error'])
self.wrongPassword()