We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e84933 commit e3ad16eCopy full SHA for e3ad16e
alpaca/broker/client.py
@@ -524,9 +524,10 @@ def _get_account_activities_iterator(
524
# ok we made it to the end, we need to ask for the next page of results
525
last_result = result[-1]
526
527
- assert (
528
- "id" in last_result
529
- ), "AccountActivity didn't contain an `id` field to use for paginating results"
+ if "id" not in last_result:
+ raise AssertionError(
+ "AccountActivity didn't contain an `id` field to use for paginating results"
530
+ )
531
532
# set the pake token to the id of the last activity so we can get the next page
533
request_fields["page_token"] = last_result["id"]
alpaca/common/models.py
@@ -1,4 +1,4 @@
1
-from pydantic import BaseModel, ConfigDict
+from pydantic import BaseModel
2
import pprint
3
4
0 commit comments