From 6a53adf1016d945d84e7ddba0c16b14b7df2c95f Mon Sep 17 00:00:00 2001 From: Damien Mat Date: Wed, 2 Sep 2020 18:04:27 +0200 Subject: [PATCH] [lcl] Fix: avoid AttributeError on transactions page When amount is not found by the first parsing, it must be done by a second one. I changed the condition on which this is triggered, since it not needed anymore, and would throw an AttributeError when page is parsed a second time. --- modules/lcl/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lcl/pages.py b/modules/lcl/pages.py index 16528579f4..a87b8b15ed 100644 --- a/modules/lcl/pages.py +++ b/modules/lcl/pages.py @@ -645,7 +645,7 @@ def fix_transaction_stuff(self, obj, tr_page): # ugly hack to fix broken html # sometimes transactions have really an amount of 0... - if not obj.amount and CleanDecimal(TableCell('credit'), default=None)(self) is None: + if not obj.amount: if tr_page: # TODO move this xpath to the relevant page class obj.amount = CleanDecimal( -- GitLab