diff --git a/modules/bnporc/pp/pages.py b/modules/bnporc/pp/pages.py index 9c3d51f1cfd444db408c9c3a3fc4cc3bdd9f98ca..d4616aaef12c93ca3c5343427204daa49d947bcd 100644 --- a/modules/bnporc/pp/pages.py +++ b/modules/bnporc/pp/pages.py @@ -106,7 +106,8 @@ def looks_legit(self, password): def on_load(self): if not self.looks_legit(self.browser.password): # we may not be able to restore the password, so reject it - raise BrowserPasswordExpired() + msg = CleanText('//div[@class="confirmation"]//span[span]')(self.doc) + raise BrowserPasswordExpired(msg) new_pass = ''.join([str((int(l) + 1) % 10) for l in self.browser.password]) self.logger.warning('Password expired. Renewing it. Temporary password is %s', new_pass)