datasetio client

This commit is contained in:
Xi Yan 2024-10-23 14:04:51 -07:00
parent 51d5ad67c4
commit 5930a92dc7
3 changed files with 105 additions and 2 deletions

View file

@ -142,7 +142,7 @@ class MetaReferenceDatasetIOImpl(DatasetIO, DatasetsProtocolPrivate):
dataset_info = self.dataset_infos.get(dataset_id)
dataset_info.dataset_impl.load()
if page_token is None:
if page_token is None or not page_token.isnumeric():
next_page_token = 0
else:
next_page_token = int(page_token)