Correct object member access syntax

This commit is contained in:
Christopher C. Wells 2021-11-03 20:03:59 -07:00 committed by Christopher Charbonneau Wells
parent bb8466b51b
commit 81aa3b25b0
1 changed files with 2 additions and 2 deletions

View File

@ -112,8 +112,8 @@ def sleep_pattern(sleeps):
text = {}
for date in days.keys():
try:
y[date] = days[date][i].time
text[date] = days[date][i].label
y[date] = days[date][i]['time']
text[date] = days[date][i]['label']
except IndexError:
y[date] = None
text[date] = None