From f769f3dbbc285e3ce3cb3f7750f7b5cf321898dc Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Fri, 30 Nov 2018 17:27:57 +0100 Subject: [PATCH] [hsbc] Corrected default value for home_url when wrongpass --- modules/hsbc/browser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/hsbc/browser.py b/modules/hsbc/browser.py index 321f6af930..0985c4c7b1 100644 --- a/modules/hsbc/browser.py +++ b/modules/hsbc/browser.py @@ -157,11 +157,12 @@ def do_login(self): if self.login.is_here(): self.page.useless_form() - # This shitty website has 2 baseurl with only one difference: the 's' at the end of 'client' + # This wonderful website has 2 baseurl with only one difference: the 's' at the end of 'client' new_base_url = 'https://clients.hsbc.fr/' if new_base_url in self.url: self.BASEURL = new_base_url + home_url = None if self.frame_page.is_here(): home_url = self.page.get_frame() self.js_url = self.page.get_js_url() -- GitLab