summaryrefslogtreecommitdiff
path: root/addons/payment_ogone/controllers
diff options
context:
space:
mode:
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)