diff options
| author | Wolfgang Taferner <wtaferner@users.noreply.github.com> | 2017-05-30 15:49:41 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2017-06-01 11:28:43 +0200 |
| commit | c444b5a2935b6a025aff607e55f3469c58c1e2da (patch) | |
| tree | 73aaf1b4a1a403118ee3fb5816297e3d7d48c37e /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 6e8516f9bf8186abe8df89211e07ee49379e1b5f (diff) | |
[FIX] google_account: fix google request exception management
Error thrown by google request is an urllib2.HTTPError that can be read
and loaded in JSON. However in some cases the result of the read may
be void or not JSON-ready. This was causing a crash in the error
management and hid the actual issue.
This commit tries to read and JSON-load the error but fall back on
simply displaying the raw error in case of issue when handling it.
Closes #17308 .
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
