diff --git a/addons/google_gmail/controllers/main.py b/addons/google_gmail/controllers/main.py index 224470e2662100506d554afa8f9b40bfffaf072d..f9bf00d9008b13c8a358b3b7d8304761bcb9e8f2 100644 --- a/addons/google_gmail/controllers/main.py +++ b/addons/google_gmail/controllers/main.py @@ -29,7 +29,7 @@ class GoogleGmailController(http.Controller): raise Forbidden() if error: - return _('An error occur during the authentication process: %s.') % error + return _('An error occur during the authentication process.') try: state = json.loads(state) @@ -56,8 +56,8 @@ class GoogleGmailController(http.Controller): try: refresh_token, access_token, expiration = record._fetch_gmail_refresh_token(code) - except UserError as e: - return _('An error occur during the authentication process: %s.') % str(e.name) + except UserError: + return _('An error occur during the authentication process.') record.write({ 'google_gmail_access_token': access_token, diff --git a/addons/google_gmail/i18n/google_gmail.pot b/addons/google_gmail/i18n/google_gmail.pot index 9a4f8508d29dc0db1d8dd6a121bb916a1d39acbc..91eed151227c33bfea2b3a74d34534cab741c634 100644 --- a/addons/google_gmail/i18n/google_gmail.pot +++ b/addons/google_gmail/i18n/google_gmail.pot @@ -58,7 +58,7 @@ msgstr "" #: code:addons/google_gmail/controllers/main.py:0 #: code:addons/google_gmail/controllers/main.py:0 #, python-format -msgid "An error occur during the authentication process: %s." +msgid "An error occur during the authentication process." msgstr "" #. module: google_gmail