summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2019-11-22 07:59:48 +0000
committerfw-bot <otis@odoo.com>2019-11-22 09:41:05 +0000
commitf02bfd3daaba65a38b08d8d8de7ce4a789ca219b (patch)
treedd081bc6ac5220300d7d1cd67f70941bfeb479e0
parent8700041ecd7c9e0a68a52dce715a671b979fc3bc (diff)
[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>
-rw-r--r--addons/payment_stripe/models/payment.py1
1 files changed, 0 insertions, 1 deletions
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):