Fix for KeyError: 31
Added a second check for checking if key exists in the dictionary.
This commit is contained in:
parent
15137cf0ae
commit
287f7196f7
@ -258,14 +258,15 @@ class Calendar(inkycal_module):
|
|||||||
|
|
||||||
# Draw a border with specified parameters around days with events
|
# Draw a border with specified parameters around days with events
|
||||||
for days in days_with_events:
|
for days in days_with_events:
|
||||||
draw_border(
|
if days in grid:
|
||||||
im_colour,
|
draw_border(
|
||||||
grid[days],
|
im_colour,
|
||||||
(icon_width, icon_height),
|
grid[days],
|
||||||
radius = 6,
|
(icon_width, icon_height),
|
||||||
thickness= 1,
|
radius = 6,
|
||||||
shrinkage = (0.4, 0.2)
|
thickness= 1,
|
||||||
)
|
shrinkage = (0.4, 0.2)
|
||||||
|
)
|
||||||
|
|
||||||
# Filter upcoming events until 4 weeks in the future
|
# Filter upcoming events until 4 weeks in the future
|
||||||
parser.clear_events()
|
parser.clear_events()
|
||||||
|
Loading…
Reference in New Issue
Block a user