lingo: catch PaymentException on backend response (#42581)

This commit is contained in:
Valentin Deniaud 2020-05-06 17:37:22 +02:00
parent 31d9b1f960
commit ea0657f565
1 changed files with 1 additions and 1 deletions

View File

@ -564,7 +564,7 @@ class PaymentView(View):
logger.info(u'received payment response: %r', backend_response)
try:
payment_response = payment.response(backend_response)
except eopayment.ResponseError as e:
except eopayment.PaymentException as e:
logger.error(u'failed to process payment response: %s', e,
extra={'eopayment_raw_response': repr(backend_response)})
raise PaymentException('Failed to process payment response')