From 7452721cfd2cf61c53779a47e2b14fd4d8d17af9 Mon Sep 17 00:00:00 2001 From: Lucas Date: Thu, 31 Mar 2022 01:24:23 -0400 Subject: [PATCH] fixing event.py --- event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event.py b/event.py index f713d3a..74c6899 100644 --- a/event.py +++ b/event.py @@ -14,4 +14,4 @@ class Event(object): @staticmethod def get_from_gcal_api_json(json): print(json['start'].get('dateTime') ) - return Event(json['summary'], parse(json['start'].get('dateTime')), parse(json['end'].get('dateTime'))) \ No newline at end of file + return Event(json['summary'] if 'summary' in json else "No Title" , parse(json['start'].get('dateTime')), parse(json['end'].get('dateTime'))) \ No newline at end of file