Bug fix to use web site instead of mobile website for ca-centrest, and probably others (Fix #1035)

Signed-off-by: Kitof <git@kitof.net>
Signed-off-by: Romain Bignon <romain@budget-insight.com>
This commit is contained in:
Kitof 2013-07-15 13:43:12 +02:00 committed by Romain Bignon
commit e3485fb185

View file

@ -32,7 +32,7 @@ class HomePage(BasePage):
def get_post_url(self):
for script in self.document.xpath('//script'):
text = script.text
if text is None or not 'CCPTE' in text:
if text is None:
continue
m = re.search(r'var chemin = "([^"]+)"', text, re.MULTILINE)