diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-11-22 07:59:48 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-11-22 09:41:05 +0000 |
| commit | f02bfd3daaba65a38b08d8d8de7ce4a789ca219b (patch) | |
| tree | dd081bc6ac5220300d7d1cd67f70941bfeb479e0 /addons | |
| parent | 8700041ecd7c9e0a68a52dce715a671b979fc3bc (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>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/payment_stripe/models/payment.py | 1 |
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): |
