Fix for KeyError: 31

Added a second check for checking if key exists in the dictionary.
This commit is contained in:
Ace
2021-02-02 23:52:52 +01:00
committed by GitHub
parent 15137cf0ae
commit 287f7196f7

View File

@@ -258,6 +258,7 @@ class Calendar(inkycal_module):
# Draw a border with specified parameters around days with events
for days in days_with_events:
if days in grid:
draw_border(
im_colour,
grid[days],