Skip to content

[18.0][FIX] base_bank_from_iban: Broader except for _get_bank_from_iban - #288

Open
qgroulard wants to merge 1 commit into
OCA:18.0from
acsone:18.0-imp-base_bank_from_iban_schwifty_exceptions-qgr
Open

[18.0][FIX] base_bank_from_iban: Broader except for _get_bank_from_iban#288
qgroulard wants to merge 1 commit into
OCA:18.0from
acsone:18.0-imp-base_bank_from_iban_schwifty_exceptions-qgr

Conversation

@qgroulard

Copy link
Copy Markdown

Our goal is to provide a fall back for any wrongly formatted iban.
Instead of catching every possible formatting issue one by one, let's catch their parent exception class.

I stumbled onto this issue because Odoo is using 17 characters long french iban in unit tests, while french iban are 27 characters long.
Hence, I have noticed that schwifty.exceptions.InvalidLength is missing from the list of expected schwifty errors, like others.

Our goal is to provide a fall back for any wrongly formatted iban.
Instead of catching every possible formatting issue one by one,
let's catch their parent exception class.
@OCA-git-bot OCA-git-bot added series:18.0 mod:base_bank_from_iban Module base_bank_from_iban labels Aug 6, 2026
@qgroulard

Copy link
Copy Markdown
Author

Hi @Andrii9090-tecnativa, this PR might interest you.
I see that you have fixed the same kind of issue recently in 9ccc044.

@pedrobaeza pedrobaeza added this to the 18.0 milestone Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:base_bank_from_iban Module base_bank_from_iban series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants