lingo: catch PaymentException on backend response (#42581)
This commit is contained in:
parent
31d9b1f960
commit
ea0657f565
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue