Преглед изворни кода

Merge pull request #8588 from hrwX/gc-fixes

fix: TypeError: 'NoneType' object is not iterable
version-14
Himanshu пре 5 година
committed by GitHub
родитељ
комит
2f0cc559eb
No known key found for this signature in database 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…
Откажи
Сачувај