From 4551bb1aec0dd5518c7beef44b9fa71db0677c5f Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Wed, 6 May 2020 17:37:22 +0200 Subject: [PATCH 2/3] lingo: catch PaymentException on backend response (#42581) --- combo/apps/lingo/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combo/apps/lingo/views.py b/combo/apps/lingo/views.py index bba6b54b..00397da5 100644 --- a/combo/apps/lingo/views.py +++ b/combo/apps/lingo/views.py @@ -556,7 +556,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') -- 2.20.1