From f9dc0d7cbdef93f0fdbf2259555b016e21a9bf79 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 2 Aug 2013 12:38:12 +0200 Subject: [PATCH] fix crash --- modules/bnporc/enterprise/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bnporc/enterprise/browser.py b/modules/bnporc/enterprise/browser.py index 2ee65370..c01d9661 100644 --- a/modules/bnporc/enterprise/browser.py +++ b/modules/bnporc/enterprise/browser.py @@ -91,7 +91,7 @@ class BNPEnterprise(BaseBrowser): def iter_history(self, account): if account._link_id is None: - return + return iter([]) self.location('/ROP?Action=F_RELCO&ch4=%s&ch8=2000' % account._link_id) d1, d2 = self.page.get_date_range()