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: 2 additions & 2 deletions src/sagemaker_core/main/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,13 +457,13 @@ def __next__(self) -> T:
elif (
len(self.summary_list) > 0
and self.index >= len(self.summary_list)
and self.next_token is None
and (not self.next_token)
):
raise StopIteration

# Otherwise, get the next page of summaries by calling the list method with the next token if available
else:
if self.next_token is not None:
if self.next_token:
response = getattr(self.client, self.list_method)(
NextToken=self.next_token, **self.list_method_kwargs
)
Expand Down
Loading