We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48e413f commit 0b8c58eCopy full SHA for 0b8c58e
src/msgraph_core/tasks/page_iterator.py
@@ -137,7 +137,7 @@ async def next(self) -> Optional[PageResult]:
137
Returns:
138
dict: The next page of items, or None if there are no more pages.
139
"""
140
- if not self.current_page.odata_next_link:
+ if self.current_page is not None and not self.current_page.odata_next_link:
141
return None
142
response = self.convert_to_page(await self.fetch_next_page())
143
page: PageResult[Any] = PageResult()
0 commit comments