Skip to content

IndexError: list index out of range #9

@fitig

Description

@fitig

I get this error when uploading a workout. I believe this is a workout that was captured in the ifit app on a phone rather than from a treadmill itself. Here is the actual error output:

Uploaded Body Weight HIIT Workout Calorie data successfully
Traceback (most recent call last):
File "ifitsync/ifitsync.py", line 691, in
UploadIfitDistanceToGoogle(y)
File "ifitsync/ifitsync.py", line 314, in UploadIfitDistanceToGoogle
+ IfitWorkoutJson.lists["meters"][0]["offset"] * 1000000,
IndexError: list index out of range

I'm having a hard time figuring out which value Google isn't liking. Do you mind pointing me in the right direction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions