Error parsing json file
Mauzki opened this issue · 3 comments
The py-file has been working fine until now, I got the error below:
2020-07-26 13:39:19,630 - ERROR - parse - Error parsing JSON file
'recordDay'
Traceback (most recent call last):
File "Huawei-TCX-converter.py", line 995, in parse
activity_date = dts.strptime(str(activity_dict['recordDay']), "%Y%m%d")
KeyError: 'recordDay'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Huawei-TCX-converter.py", line 1560, in
main()
File "Huawei-TCX-converter.py", line 1545, in main
hi_activity_list = hi_json.parse(args.from_date,args.timezone)
File "Huawei-TCX-converter.py", line 1074, in parse
raise Exception('Error parsing JSON file <%s>', self.json_file.name)
Exception: ('Error parsing JSON file <%s>', 'motion path detail data.json')
Not sure what the error is with the RecordDay, could someone help me with this?
So far everything has been working fine, so I am not sure if this is a problem with Huawei's data or the code... Any help appreciated!
Oops, this was in a wrong place, sorry!
No problem. If you download the latest version of this repository, you won't get that error (Huawei changed the data format recently).