bnporc fall back on old website for pro accounts
This commit is contained in:
parent
4477c32e9c
commit
94cb1c4e21
3 changed files with 18 additions and 3 deletions
|
|
@ -66,8 +66,14 @@ class BNPorcModule(Module, CapBank, CapMessages):
|
|||
def create_default_browser(self):
|
||||
b = {'ppold': BNPorc, 'ent': BNPEnterprise, 'ent2': BNPCompany, 'pp': BNPParibasBrowser}
|
||||
self.BROWSER = b[self.config['website'].get()]
|
||||
return self.create_browser(self.config['login'].get(),
|
||||
self.config['password'].get())
|
||||
try:
|
||||
return self.create_browser(self.config['login'].get(),
|
||||
self.config['password'].get())
|
||||
except BNPParibasBrowser.ProAccount:
|
||||
self.logger.debug('Switching on old website because this is a pro account.')
|
||||
self.BROWSER = BNPorc
|
||||
return self.create_browser(self.config['login'].get(),
|
||||
self.config['password'].get())
|
||||
|
||||
def iter_accounts(self):
|
||||
for account in self.browser.get_accounts_list():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue