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