File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,10 @@ def __init__(
6767 parsable_factory = type (response )
6868 elif constructor_callable is None :
6969 parsable_factory = PageResult
70+ else :
71+ raise ValueError (
72+ 'One of the constructor_callable or the PageResult type parameter is required.'
73+ )
7074 self .parsable_factory = parsable_factory
7175 self .pause_index = 0
7276 self .headers : HeadersCollection = HeadersCollection ()
@@ -141,7 +145,6 @@ async def next(self) -> Optional[PageResult]:
141145 if self .current_page is not None and not self .current_page .odata_next_link :
142146 return None
143147 response = await self .fetch_next_page ()
144- print (f"Response - { type (response )} " )
145148 page : PageResult = PageResult (response .odata_next_link , response .value ) # type: ignore
146149 return page
147150
You can’t perform that action at this time.
0 commit comments