From 27ac4d4e12337815da70f0a9deab08aadbff79e3 Mon Sep 17 00:00:00 2001 From: Florent Viard Date: Wed, 4 Nov 2020 16:44:35 +0100 Subject: [PATCH] [boursorama] Fixes a case of Recipient Not Found error when using boobank to add a recipient Boobank does not "pre set" a recipient.id of the recipient object it creates to add a new recipient. So, trying to match the new list of recipients with the new recipient by id will fail. We match with iban instead, as an iban is mandatory to add a recipient anyway. --- modules/boursorama/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/boursorama/browser.py b/modules/boursorama/browser.py index a6810e9f77..885cd2e546 100644 --- a/modules/boursorama/browser.py +++ b/modules/boursorama/browser.py @@ -880,7 +880,7 @@ def check_and_update_recipient(self, recipient, account_url): # We are taking it from the recipient list page # because there is no summary of the adding self.go_recipients_list(account_url, recipient.origin_account_id) - return find_object(self.page.iter_recipients(), id=recipient.id, error=RecipientNotFound) + return find_object(self.page.iter_recipients(), iban=recipient.iban, error=RecipientNotFound) @need_login def iter_transfers(self, account): -- GitLab