summaryrefslogtreecommitdiff
path: root/addons/payment_ogone/controllers
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2017-05-10 16:34:36 +0200
committerXavier Morel <xmo@odoo.com>2017-05-12 16:15:40 +0200
commit07ab8b6cd2b44aeb91dadc35adf5f4b19f1399b2 (patch)
treee11bc7b07e68ff4ee0a07c1a786abd2f3abe27a8 /addons/payment_ogone/controllers
parent3dd3790597e84186d922b798aa8bb4650513ce4b (diff)
[FIX] P3: Exception.message removed
Diffstat (limited to 'addons/payment_ogone/controllers')
-rw-r--r--addons/payment_ogone/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_ogone/controllers/main.py b/addons/payment_ogone/controllers/main.py
index 2dfa2747ab8..53150686f25 100644
--- a/addons/payment_ogone/controllers/main.py
+++ b/addons/payment_ogone/controllers/main.py
@@ -41,7 +41,7 @@ class OgoneController(http.Controller):
acq.s2s_process(post)
except Exception as e:
# synthax error: 'CHECK ERROR: |Not a valid date\n\n50001111: None'
- error = e.message.splitlines()[0].split('|')[-1] or ''
+ error = str(e).splitlines()[0].split('|')[-1] or ''
return werkzeug.utils.redirect(post.get('return_url', '/') + (error and '#error=%s' % werkzeug.url_quote(error) or ''))
@http.route(['/payment/ogone/s2s/feedback'], auth='none', csrf=False)