This commit is contained in:
Xi Yan 2024-10-24 12:16:28 -07:00
parent a3a8f32541
commit 42bac85e1f

View file

@ -138,7 +138,7 @@ class MetaReferenceDatasetIOImpl(DatasetIO, DatasetsProtocolPrivate):
if page_token and not page_token.isnumeric(): if page_token and not page_token.isnumeric():
raise ValueError("Invalid page_token") raise ValueError("Invalid page_token")
if page_token is None: if page_token is None or len(page_token) == 0:
next_page_token = 0 next_page_token = 0
else: else:
next_page_token = int(page_token) next_page_token = int(page_token)