From 732be99bfbfa5a72cea0357789050e3beeeceff0 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 31 Jul 2012 15:18:13 +0200 Subject: [PATCH] correctly handle case that we don't support the history page of an account --- modules/boursorama/browser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/boursorama/browser.py b/modules/boursorama/browser.py index 4a362840..e9cf5f39 100644 --- a/modules/boursorama/browser.py +++ b/modules/boursorama/browser.py @@ -82,6 +82,9 @@ class Boursorama(BaseBrowser): def get_history(self, account): self.location(account._link_id) + if not self.is_on_page(AccountHistory): + raise NotImplementedError() + operations = self.page.get_operations() # load last month as well target = date.today() - relativedelta(months=1)