Skip to content

Commit

Permalink
fix: key error on can_assign_tasks in Project model (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
tedyeates authored May 22, 2024
1 parent 04d3e82 commit 69f8896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion todoist_api_python/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def from_dict(cls, obj):
is_inbox_project=obj.get("is_inbox_project"),
is_shared=obj["is_shared"],
is_team_inbox=obj.get("is_team_inbox"),
can_assign_tasks=obj["can_assign_tasks"],
can_assign_tasks=obj.get("can_assign_tasks"),
name=obj["name"],
order=obj.get("order"),
parent_id=obj.get("parent_id"),
Expand Down

0 comments on commit 69f8896

Please sign in to comment.