From 84500c27b1cb98007dd799b3f93196b455a41aea Mon Sep 17 00:00:00 2001 From: xmo-odoo Date: Thu, 25 Oct 2018 09:13:17 +0000 Subject: [PATCH] [P3] payment_stripe: Exception.message removed Apparently missed in 07ab8b6cd2b44aeb91dadc35adf5f4b19f1399b2 In Python 3, there is no Exception.message attribute anymore, this would lead to cascading exceptions in the stripe_s2s_create handler. closes odoo/odoo#28141 --- addons/payment_stripe/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/payment_stripe/controllers/main.py b/addons/payment_stripe/controllers/main.py index f446375d429..105de56a8c8 100644 --- a/addons/payment_stripe/controllers/main.py +++ b/addons/payment_stripe/controllers/main.py @@ -27,7 +27,7 @@ class StripeController(http.Controller): try: acquirer.s2s_process(post) except Exception as e: - error = e.message + error = str(e) return_url = post.get('return_url', '/') if error: