From aff3f66366eb81e6974903ae983e6dc226fc6922 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Mon, 16 Oct 2023 12:29:49 +0530 Subject: [PATCH] fix: work-around to fix issue with syncing Google Contacts (#22649) Issue #22648 --- .../integrations/doctype/google_contacts/google_contacts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frappe/integrations/doctype/google_contacts/google_contacts.py b/frappe/integrations/doctype/google_contacts/google_contacts.py index cee04a92a1..65bd2bf1d3 100644 --- a/frappe/integrations/doctype/google_contacts/google_contacts.py +++ b/frappe/integrations/doctype/google_contacts/google_contacts.py @@ -155,6 +155,10 @@ def sync_contacts_from_google_contacts(g_contact): frappe.publish_realtime( "import_google_contacts", dict(progress=idx + 1, total=len(results)), user=frappe.session.user ) + # Work-around to fix + # https://github.com/frappe/frappe/issues/22648 + if not connection.get("names"): + continue for name in connection.get("names"): if name.get("metadata").get("primary"):