diff --git a/modules/bnp/pp/browser.py b/modules/bnp/pp/browser.py index 1c4f7e8b994b1962128777aa181b3743b2d273c2..e54dd3062e7ce1136b3fae79f57ea314f7309d9c 100644 --- a/modules/bnp/pp/browser.py +++ b/modules/bnp/pp/browser.py @@ -358,8 +358,15 @@ def iter_accounts(self): ibans=ibans, is_pro=is_pro, )) - self.market_syn.go(json={}) - market_accounts = self.page.get_list() # get the list of 'Comptes Titres' + + # 'Comptes Titres' retrieval is broken + try: + self.market_syn.go(json={}) + market_accounts = self.page.get_list() # get the list of 'Comptes Titres' + except HTTPNotFound: + self.logger.warn('Could not retrieve "Comptes Titres" accounts') + market_accounts = [] + checked_accounts = set() for account in accounts: if self.is_loan(account):