mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Only catch the openerp exception in generate_party_agent(), as suggested by Stefan on the MP.
This commit is contained in:
@@ -295,7 +295,7 @@ class banking_export_pain(orm.AbstractModel):
|
||||
party_agent_bic = etree.SubElement(
|
||||
party_agent_institution, gen_args.get('bic_xml_tag'))
|
||||
party_agent_bic.text = bic
|
||||
except:
|
||||
except except_orm:
|
||||
if order == 'C':
|
||||
if iban[0:2] != gen_args['initiating_party_country_code']:
|
||||
raise orm.except_orm(
|
||||
|
||||
Reference in New Issue
Block a user