[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) <nim@odoo.com>
This commit is contained in:
Nicolas Martinelli
2019-11-22 09:41:05 +00:00
committed by fw-bot
parent 8700041ecd
commit f02bfd3daa
-1
View File
@@ -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):