summaryrefslogtreecommitdiffstats
path: root/module/plugins/Account.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-07 18:57:59 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-07 18:57:59 +0200
commitb0868ae6446078bacf1635dde5e4ab316b4a94cb (patch)
tree1f5eb9bf4dfd413b954b2ea87749cd10da19de0e /module/plugins/Account.py
parent[SimpleCrypter][SimpleHoster] Better exception handling (diff)
downloadpyload-b0868ae6446078bacf1635dde5e4ab316b4a94cb.tar.xz
New __authors__ key replaces __author_name__ and __author_mail__ + Whitespaces and EOF fixup
Diffstat (limited to 'module/plugins/Account.py')
-rw-r--r--module/plugins/Account.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py
index 291ebf1f5..28d9ffd68 100644
--- a/module/plugins/Account.py
+++ b/module/plugins/Account.py
@@ -24,8 +24,8 @@ class Account(Base):
__version__ = "0.3"
__description__ = """Base account plugin"""
- __author_name__ = "mkaay"
- __author_mail__ = "mkaay@mkaay.de"
+ __authors__ = [("mkaay", "mkaay@mkaay.de")]
+
#: after that time (in minutes) pyload will relogin the account
login_timeout = 10 * 60
@@ -67,13 +67,13 @@ class Account(Base):
self.login(user, data, req)
except WrongPassword:
self.logWarning(
- _("Could not login with account %(user)s | %(msg)s") % {"user": user
- , "msg": _("Wrong Password")})
+ _("Could not login with account %(user)s | %(msg)s") % {"user": user,
+ "msg": _("Wrong Password")})
success = data['valid'] = False
except Exception, e:
self.logWarning(
- _("Could not login with account %(user)s | %(msg)s") % {"user": user
- , "msg": e})
+ _("Could not login with account %(user)s | %(msg)s") % {"user": user,
+ "msg": e})
success = data['valid'] = False
if self.core.debug:
print_exc()