diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2017-12-21 15:33:06 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2017-12-21 15:35:41 +0100 |
| commit | a6a6cf8005ac8bb662898155f42d2c4e1926772f (patch) | |
| tree | 6e5d22df4db8698515bb23b5757584bceb6101ea | |
| parent | c2a5d6031cc448b5af601a3a75dbc0d3d2cab09c (diff) | |
[FIX] google_account: typo python3 from 01e35141
The typo caused a traceback instead of an error message.
opw-801237
closes #21790
| -rw-r--r-- | addons/google_account/models/google_service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/google_account/models/google_service.py b/addons/google_account/models/google_service.py index 345030dcf6a..c547b4f6fe0 100644 --- a/addons/google_account/models/google_service.py +++ b/addons/google_account/models/google_service.py @@ -144,7 +144,7 @@ class GoogleService(models.TransientModel): if error.response.status_code == 400: # invalid grant with registry(request.session.db).cursor() as cur: self.env(cur)['res.users'].browse(self.env.uid).write({'google_%s_rtoken' % service: False}) - error_key = json.loads(error.response.json()).get("error", "nc") + error_key = error.response.json().get("error", "nc") _logger.exception("Bad google request : %s !", error_key) error_msg = _("Something went wrong during your token generation. Maybe your Authorization Code is invalid or already expired [%s]") % error_key raise self.env['res.config.settings'].get_config_warning(error_msg) |
