瀏覽代碼

Merge pull request #8588 from hrwX/gc-fixes

fix: TypeError: 'NoneType' object is not iterable
version-14
Himanshu 5 年之前
committed by GitHub
父節點
當前提交
2f0cc559eb
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      frappe/integrations/doctype/google_calendar/google_calendar.py
  2. +1
    -1
      frappe/integrations/doctype/google_contacts/google_contacts.py

+ 1
- 1
frappe/integrations/doctype/google_calendar/google_calendar.py 查看文件

@@ -220,7 +220,7 @@ def sync_events_from_google_calendar(g_calendar, method=None, page_length=10):
except HttpError as err:
frappe.throw(_("Google Calendar - Could not fetch event from Google Calendar, error code {0}.").format(err.resp.status))

for event in events.get("items"):
for event in events.get("items", []):
results.append(event)

if not events.get("nextPageToken"):


+ 1
- 1
frappe/integrations/doctype/google_contacts/google_contacts.py 查看文件

@@ -155,7 +155,7 @@ def sync_contacts_from_google_contacts(g_contact):
except HttpError as err:
frappe.throw(_("Google Contacts - Could not sync contacts from Google Contacts {0}, error code {1}.").format(account.name, err.resp.status))

for contact in contacts.get("connections"):
for contact in contacts.get("connections", []):
results.append(contact)

if not contacts.get("nextPageToken"):


Loading…
取消
儲存