possible bugfix

UnboundLocalError: local variable 'line_pos' referenced before assignment
This commit is contained in:
Ace 2020-09-12 01:04:42 +02:00 committed by GitHub
parent 4469169adc
commit 9d401cf07a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,6 +191,7 @@ class Agenda(inkycal_module):
# If no events were found, write only dates and lines
else:
line_pos = [(0, int(line * line_height)) for line in range(max_lines)]
cursor = 0
for _ in agenda_events:
title = _['title']