Skip to content

Commit 92cb83f

Browse files
authored
State becomes optional in AuthResult.from_dict (#111)
1 parent f43df98 commit 92cb83f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: todoist_api_python/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ class AuthResult:
369369
def from_dict(cls, obj):
370370
return cls(
371371
access_token=obj["access_token"],
372-
state=obj["state"],
372+
state=obj.get("state"),
373373
)
374374

375375

0 commit comments

Comments
 (0)