Merge lp:~therp-nl/banking-addons/6.1-no_unnecessary_raise into lp:banking-addons/6.1
Proposed by
Stefan Rijnhart (Opener)
| Status: | Merged |
|---|---|
| Merged at revision: | 194 |
| Proposed branch: | lp:~therp-nl/banking-addons/6.1-no_unnecessary_raise |
| Merge into: | lp:banking-addons/6.1 |
| Diff against target: |
149 lines (+42/-49) 3 files modified
account_banking/account_banking.py (+36/-42) account_banking/sepa/iban.py (+3/-4) account_banking/sepa/online.py (+3/-3) |
| To merge this branch: | bzr merge lp:~therp-nl/banking-addons/6.1-no_unnecessary_raise |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Holger Brunn (Therp) | code review | Approve | |
| Yannick Vaucher @ Camptocamp | code review, no tests | Approve | |
|
Review via email:
|
|||
Description of the change
Legacy code raises in two instances:
- When the BBAN of a Turkish IBAN is requested
- When no online database lookup is implemented for a region
These exceptions were not caught properly in every case. Instead of adding additional try/except blocks, I'm proposing to do away with these exceptions and return False instead. Dealing with an empty value is obvious in all cases where these methods are called.
7.0 version here: https:/
To post a comment you must log in.

LGTM