Skip to content

Commit

Permalink
fix: case for 0 calendar events
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaveas committed Dec 2, 2023
1 parent b4e9ec8 commit 58f3804
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def get_calendar_events():
)

events = events_result.get("items", [])
print("event:", events[0])
if len(events) > 0:
print("event:", events[0])

for event in events:
matching_events.append(
Expand Down

0 comments on commit 58f3804

Please sign in to comment.