From f02bfd3daaba65a38b08d8d8de7ce4a789ca219b Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 22 Nov 2019 07:59:48 +0000 Subject: [PATCH] [FIX] payment_stripe: avoid internal error In case the Stripe API call fails, an Internal Server Error page is displayed to the user, which is not user friendly. opw-2126196 closes odoo/odoo#40678 X-original-commit: 95a452f6d928de2e8532027893a353167ffdd389 Signed-off-by: Nicolas Martinelli (nim) --- addons/payment_stripe/models/payment.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/payment_stripe/models/payment.py b/addons/payment_stripe/models/payment.py index bcf6055b3d4..1cb2adf97c1 100644 --- a/addons/payment_stripe/models/payment.py +++ b/addons/payment_stripe/models/payment.py @@ -69,7 +69,6 @@ class PaymentAcquirerStripe(models.Model): "Request data:\n%s\n" "Response body:\n%s", url, pprint.pformat(data), resp.text) - raise return resp.json() def _create_stripe_session(self, kwargs):