[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
This commit is contained in:
Thibault Francois
2011-02-23 16:24:07 +01:00
parent bcbde0e87e
commit 5c7e18b72a
@@ -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 :