def delete_contact(gd_client, contact_url): # Retrieving the contact is required in order to get the Etag. contact = gd_client.GetContact(contact_url) try: gd_client.Delete(contact) except gdata.client.RequestError, e: if e.status == 412: # Etags mismatch: handle the exception. pass