diff --git a/modules/lcl/browser.py b/modules/lcl/browser.py index 5bd5b3807c3665b86223948cf77372236085c800..4281ae109024ec4326a2fe187b14d992c2d01fe2 100644 --- a/modules/lcl/browser.py +++ b/modules/lcl/browser.py @@ -229,7 +229,9 @@ def get_accounts(self): continue self.location('/outil/UWRI/Accueil/') - if self.page.has_iban_choice(): + if self.no_perm.is_here(): + self.logger.warning('RIB is unavailable.') + elif self.page.has_iban_choice(): self.rib.go(data={'compte': '%s/%s/%s' % (a.id[0:5], a.id[5:11], a.id[11:])}) if self.rib.is_here(): iban = self.page.get_iban()