diff options
Diffstat (limited to 'addons/iap/models/iap.py')
| -rw-r--r-- | addons/iap/models/iap.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/iap/models/iap.py b/addons/iap/models/iap.py index b90bfff5ccb..608aa52c788 100644 --- a/addons/iap/models/iap.py +++ b/addons/iap/models/iap.py @@ -7,7 +7,7 @@ import uuid import werkzeug.urls import requests -from odoo import api, fields, models, exceptions +from odoo import api, fields, models, exceptions, _ from odoo.tools import pycompat _logger = logging.getLogger(__name__) @@ -68,7 +68,9 @@ def jsonrpc(url, method='call', params=None, timeout=15): raise e return response.get('result') except (ValueError, requests.exceptions.ConnectionError, requests.exceptions.MissingSchema, requests.exceptions.Timeout, requests.exceptions.HTTPError) as e: - raise exceptions.AccessError('The url that this service requested returned an error. Please contact the author of the app. The url it tried to contact was ' + url) + raise exceptions.AccessError( + _('The url that this service requested returned an error. Please contact the author of the app. The url it tried to contact was %s') % url + ) #---------------------------------------------------------- # Helpers for proxy |
