Skip to content
Snippets Groups Projects
Commit 95a452f6 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[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#40670

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 91b5650a
Branches
Tags
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment