From dae2957394b72588760f3417b03e7dc2d23f989b Mon Sep 17 00:00:00 2001 From: "tfr@openerp.com" <> Date: Tue, 5 Jul 2011 14:04:48 +0200 Subject: [PATCH] [FIX] buildbot error bzr revid: tfr@openerp.com-20110705120448-hubv145y04lpkkf1 --- addons/import_google/wizard/import_google_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/import_google/wizard/import_google_data.py b/addons/import_google/wizard/import_google_data.py index fae404d103a..776cb578f08 100644 --- a/addons/import_google/wizard/import_google_data.py +++ b/addons/import_google/wizard/import_google_data.py @@ -71,7 +71,7 @@ class synchronize_google(osv.osv_memory): raise osv.except_osv(_('Warning !'), _("No Google Username or password Defined for user.\nPlease define in user view")) gd_client = google.google_login(user_obj.gmail_user,user_obj.gmail_password,type='group') if not gd_client: - raise osv.except_osv(_('Error'), _("Authentication fail check the user and password !")) + return [('failed', 'Connection to google fail')] res = [] query = gdata.contacts.service.GroupsQuery(feed='/m8/feeds/groups/default/full') @@ -92,7 +92,7 @@ class synchronize_google(osv.osv_memory): for cal in calendars.entry: res.append((cal.id.text, cal.title.text)) except Exception, e: - raise osv.except_osv('Error !', e.args[0].get('body')) + return [('failed', 'Connection to google fail')] res.append(('all', 'All Calendars')) return res