• Florent Viard's avatar
    [boursorama] Fixes succesful recipient additions that results in "Recipient not found" errors · 0b884402
    Florent Viard authored
    When adding recipients, sometimes the process would successfully go to
    completion but an error "Recipient not found" would be raised at the
    final check.
    (ie when we check that the newly added recipient is inside the
    recipients list)
    
    The origin of the problem is that on Boursorama side, the recipient list
    is global for all accounts.
    But for some accounts, the recipient list is prefixed (ex. saving
    accounts) or transfer is not allowed (ex. market accounts).
    
    Before, the "origin" account that was used to add the recipient was
    selected in a random way as "the first account retrieved by
    get_accounts".
    This was not good as, randomly, an unusable account could have been
    selected, like saving accounts.
    
    Boobank does not select an origin_account_id, but if it is the case, we
    also have to ensure that the account is valid to add the recipient.
    And so, avoid to fail in an unexpected way.
    0b884402
Name
Last commit
Last update
.ci Loading commit data...
.gitlab/issue_templates Loading commit data...
contrib Loading commit data...
desktop Loading commit data...
docs Loading commit data...
icons Loading commit data...
man Loading commit data...
modules Loading commit data...
tools Loading commit data...
weboob Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
MANIFEST.in Loading commit data...
MANIFEST.in.modules Loading commit data...
README.md Loading commit data...
build.mk Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...