From 3ca0e5c7d02dd7222b879b4fb1583e3d1e36fe73 Mon Sep 17 00:00:00 2001 From: Vincent Paredes Date: Mon, 20 Apr 2015 14:16:53 +0200 Subject: [PATCH] don't try to recover transaction from DAT account --- modules/axabanque/pages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/axabanque/pages.py b/modules/axabanque/pages.py index ee8a55bf..9551b6ae 100644 --- a/modules/axabanque/pages.py +++ b/modules/axabanque/pages.py @@ -253,6 +253,9 @@ class TransactionsPage(BasePage): self.browser.location(form.attrib['action'], urllib.urlencode(args)) def get_history(self): + #DAT account can't have transaction + if self.document.xpath('//table[@id="table-dat"]'): + return tables = self.document.xpath('//table[@id="table-detail-operation"]') if len(tables) == 0: tables = self.document.xpath('//table[@id="table-detail"]')