Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion openml/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ def list_all(listing_call, batch_size=10000, *args, **filters):
dict
"""
page = 0
has_more = 1
result = {}

while True:
while has_more:
try:
new_batch = listing_call(
*args,
Expand All @@ -135,5 +136,6 @@ def list_all(listing_call, batch_size=10000, *args, **filters):
break
result.update(new_batch)
page += 1
has_more = (len(new_batch) == batch_size)

return result