Skip to content

Fix key error issue #3

Description

@programmerPhysicist

Sometimes, when running the script, you will get the following error:

Traceback (most recent call last):
  File "/home/user/Workspace/habitica-workspace/Habitica-Plus-Todoist/source/oneWaySync.py", line 223, in <module>
    sync_todoist_to_habitica()
  File "/home/user/Workspace/habitica-workspace/Habitica-Plus-Todoist/source/oneWaySync.py", line 119, in sync_todoist_to_habitica
    fin_hab = main.get_hab_fromID(tid)
  File "/home/user/Workspace/habitica-workspace/Habitica-Plus-Todoist/source/main.py", line 228, in get_hab_fromID
    hab = HabTask(task['data'])
KeyError: 'data'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions