diff options
| author | Denis Ledoux <dle@odoo.com> | 2014-12-10 17:29:14 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2014-12-10 17:31:45 +0100 |
| commit | ebca88defc97f7cd902018dfc9dc5a0e54d0f908 (patch) | |
| tree | 3c71738ce38db7b087c53975716a43504893dc5f /addons | |
| parent | db98d0771adb48d2007d28cad2620f0b54fb2305 (diff) | |
[FIX] google_calendar: All exceptions types do not have read method
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/google_calendar/google_calendar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/google_calendar/google_calendar.py b/addons/google_calendar/google_calendar.py index b65d1b337a9..c3dd39153a7 100644 --- a/addons/google_calendar/google_calendar.py +++ b/addons/google_calendar/google_calendar.py @@ -667,7 +667,7 @@ class google_calendar(osv.AbstractModel): registry = openerp.modules.registry.RegistryManager.get(request.session.db) with registry.cursor() as cur: self.pool['res.users'].write(cur, uid, [uid], {'google_calendar_last_sync_date': False}, context=context) - error_key = simplejson.loads(e.read()) + error_key = simplejson.loads(str(e)) error_key = error_key.get('error', {}).get('message', 'nc') error_msg = "Google are lost... the next synchro will be a full synchro. \n\n %s" % error_key raise self.pool.get('res.config.settings').get_config_warning(cr, _(error_msg), context=context) |
