Skip to content

Commit

Permalink
Fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Jul 17, 2024
1 parent 2df496c commit d50e689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jobs/payment-jobs/tasks/electronic_funds_transfer_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def link_electronic_funds_transfers_cfs(cls):
f'Account id={invoice.payment_account_id} '
f'EFT Credit invoice Link : {credit_invoice_link.id}'
f'ERROR : {str(e)}', level='error')
current_app.logger.error(e)
current_app.logger.error('Error: ', exc_info=True)
db.session.rollback()
continue

Expand Down Expand Up @@ -138,6 +138,6 @@ def reverse_electronic_funds_transfers_cfs(cls):
f'Account id={invoice.payment_account_id} '
f'EFT Credit invoice Link : {credit_invoice_link.id}'
f'ERROR : {str(e)}', level='error')
current_app.logger.error(e)
current_app.logger.error('Error: ', exc_info=True)
db.session.rollback()
continue

0 comments on commit d50e689

Please sign in to comment.