From cea81bee07912b3ba02e3198994f15711d4ce922 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Wed, 25 Mar 2015 08:46:57 +0100 Subject: [PATCH] do not change Transaction.raw if there is no detail --- modules/lcl/pages.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lcl/pages.py b/modules/lcl/pages.py index 3eefe0cf..35673761 100644 --- a/modules/lcl/pages.py +++ b/modules/lcl/pages.py @@ -232,7 +232,9 @@ class AccountHistoryPage(LoggedPage, HTMLPage): if obj.category == 'RELEVE CB': return - obj.raw = Async('details', CleanText(u'//td[contains(text(), "Libellé")]/following-sibling::*[1]', default=obj.raw))(self) + raw = Async('details', CleanText(u'//td[contains(text(), "Libellé")]/following-sibling::*[1]', default=obj.raw))(self) + if raw: + obj.raw = raw return True def get_operations(self):