~/bank/weboob $ boobank -I ls
Account Balance Coming
---------------------------------------------------------+----------+----------
2019-06-26 07:57:09,549:WARNING:requests.packages.urllib3.connectionpool:1.5:connectionpool.py:647:urlopen Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /Portail.aspx
2019-06-26 07:57:10,084:WARNING:requests.packages.urllib3.connectionpool:1.5:connectionpool.py:647:urlopen Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /Portail.aspx
Bug(cealpes): Unable to find element //span[@id="lea-prdvel-lien"]/p/b/a[contains(text(), "Continuer")]
Use --debug option to print backtraces
...
pi@raspberrypi ~/bank/weboob/modules/caissedepargne $ git lg -2
* 428ab2b - (HEAD, 1.5, v1.5) Weboob 1.5 released <Romain Bignon> (4 months ago)
* f30a9cf - setup.py: use standard license name <Romain Bignon> (4 months ago)
pi@raspberrypi ~/bank/weboob/modules/caissedepargne $ python --version
Python 2.7.3
pi@raspberrypi ~/bank/weboob/modules/caissedepargne $ uname -a
Linux raspberrypi 3.10.28+ #634 PREEMPT Sun Feb 2 15:16:25 GMT 2014 armv6l GNU/Linux
diff --git a/modules/caissedepargne/pages.py b/modules/caissedepargne/pages.py
index 5d13b6e..b76a055 100644
--- a/modules/caissedepargne/pages.py
+++ b/modules/caissedepargne/pages.py
@@ -208,7 +208,11 @@ class IndexPage(LoggedPage, HTMLPage):
if 'OIC_QCF' in self.browser.url:
# QCF is a mandatory test to make sure you know the basics about financials products
# however, you can still choose to postpone it. hence the continue link
- link = Link('//span[@id="lea-prdvel-lien"]/p/b/a[contains(text(), "Continuer")]')(self.doc)
+ try:
+ link = Link('//span[@id="lea-prdvel-lien"]/p/b/a[contains(text(), "Continuer")]')(self.doc)
+ except Exception:
+ link = False
+
if link:
self.logger.warning("By-passing QCF")
self.browser.location(link)