File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -524,9 +524,10 @@ def _get_account_activities_iterator(
524
524
# ok we made it to the end, we need to ask for the next page of results
525
525
last_result = result [- 1 ]
526
526
527
- assert (
528
- "id" in last_result
529
- ), "AccountActivity didn't contain an `id` field to use for paginating results"
527
+ if "id" not in last_result :
528
+ raise AssertionError (
529
+ "AccountActivity didn't contain an `id` field to use for paginating results"
530
+ )
530
531
531
532
# set the pake token to the id of the last activity so we can get the next page
532
533
request_fields ["page_token" ] = last_result ["id" ]
Original file line number Diff line number Diff line change 1
- from pydantic import BaseModel , ConfigDict
1
+ from pydantic import BaseModel
2
2
import pprint
3
3
4
4
You can’t perform that action at this time.
0 commit comments