From 5c7e18b72a93a6e71fcecf3e14f157d05f9a5a09 Mon Sep 17 00:00:00 2001 From: Thibault Francois Date: Wed, 23 Feb 2011 16:24:07 +0100 Subject: [PATCH] [REMOVE] exception if contact is False, never false and actualy not in the case if the group is empty bzr revid: tfr@openerp.com-20110223152407-pj3jv6d30swf5g9w --- addons/sync_google_contact/wizard/google_contact_import.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/sync_google_contact/wizard/google_contact_import.py b/addons/sync_google_contact/wizard/google_contact_import.py index 0bb97e70f23..fc6ee3fe94f 100644 --- a/addons/sync_google_contact/wizard/google_contact_import.py +++ b/addons/sync_google_contact/wizard/google_contact_import.py @@ -159,10 +159,8 @@ class synchronize_google_contact(osv.osv_memory): if obj.group_name not in ['all','none']: query = gdata.contacts.service.ContactsQuery() query.group =obj.group_name - print query.ToUri() contact = gd_client.GetContactsFeed(query.ToUri()) - if not contact: - raise osv.except_osv(_('Error'), _("No contact in this group!")) + if obj.create_partner: partner_ids = self.create_contact( cr, uid, gd_client,contact, partner_id=True,context=context) else :