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 = {} text = {}
for date in days.keys(): for date in days.keys():
try: try:
y[date] = days[date][i].time y[date] = days[date][i]['time']
text[date] = days[date][i].label text[date] = days[date][i]['label']
except IndexError: except IndexError:
y[date] = None y[date] = None
text[date] = None text[date] = None