From 993803c222f54a6ae0a12230a5e51789ec8ed564 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 27 Dec 2014 13:58:27 +0100 Subject: [ShareonlineBiz] Fix account wrong password recognition --- module/plugins/accounts/ShareonlineBiz.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module/plugins/accounts/ShareonlineBiz.py') diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py index fea278559..056f14876 100644 --- a/module/plugins/accounts/ShareonlineBiz.py +++ b/module/plugins/accounts/ShareonlineBiz.py @@ -6,7 +6,7 @@ from module.plugins.Account import Account class ShareonlineBiz(Account): __name__ = "ShareonlineBiz" __type__ = "account" - __version__ = "0.26" + __version__ = "0.27" __description__ = """Share-online.biz account plugin""" __license__ = "GPLv3" @@ -58,5 +58,7 @@ class ShareonlineBiz(Account): def login(self, user, data, req): html = self.api_response(user, req) - if "EXCEPTION" in html: + err = re.search(r'**(.+?)**', html) + if err: + self.logError(err.group(1)) self.wrongPassword() -- cgit v1.2.3