Fix downloading in non-interactive mode

This commit is contained in:
Florent 2013-11-21 09:45:12 +01:00
commit 32ee771ee0
2 changed files with 3 additions and 1 deletions

View file

@ -127,6 +127,8 @@ class Leclercmobile(BaseBrowser):
def get_bill(self, id):
assert isinstance(id, basestring)
if not self.is_on_page(HistoryPage):
self.location(self.conso)
parentid = id[0:10]
l = self.page.date_bills(parentid)
for a in l: