KeyError: 'locations'
pakair opened this issue · 1 comments
pakair commented
saved your code as lh.py, fixed the filename to read, '2020_FEBRUARY.json' but upon running your code I get ...
$ python lh.py
Traceback (most recent call last):
File "lh.py", line 11, in
for i in data['locations']:
KeyError: 'locations'
DavidMetcalfe commented
Please note the filename contained in the instructions: "Location History.json"
Please rename and the script should work fine.