From a9b471ce9beffec9a970c69fb288afa0b356d707 Mon Sep 17 00:00:00 2001 From: samerbam Date: Sun, 27 Aug 2023 00:44:54 -0400 Subject: [PATCH] add return --- application/sync_calendar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/sync_calendar.py b/application/sync_calendar.py index b12f327..8814525 100644 --- a/application/sync_calendar.py +++ b/application/sync_calendar.py @@ -104,7 +104,8 @@ class SyncData(): def get_calendar_events(self, day=None): - self.get_new_creds() + if not self.get_new_creds(): + return # now = datetime.now() # if day: