Skip to content

Commit 28d4418

Browse files
committed
check response
1 parent 7f751f5 commit 28d4418

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

taskbadger/sdk.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ def list_tasks(page_size: int = None, cursor: str = None):
162162
"""List tasks."""
163163
kwargs = _make_args(page_size=page_size, cursor=cursor)
164164
with Session() as client:
165-
return task_list.sync(client=client, **kwargs)
165+
response = task_list.sync_detailed(client=client, **kwargs)
166+
_check_response(response)
167+
return response.parsed
166168

167169

168170
def _make_args(**kwargs):

0 commit comments

Comments
 (0)