diff options
| author | Martin Trigaux <mat@odoo.com> | 2018-06-05 15:34:41 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2018-06-27 15:52:03 +0200 |
| commit | c1b6cfaab8d42885533e23985058cfc78b48d7c7 (patch) | |
| tree | 8102f6f3ee80f2814f9ee3a1643cebafea2ee48b /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | ef444da57a0e5b3a8426a6fac8cef3f6d856b148 (diff) | |
[FIX] google_account: backport of c444b5a293
In this commit, our hero backport c444b5a293 to 9.0
[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.
opw-1851612
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
