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__(
67
67
parsable_factory = type (response )
68
68
elif constructor_callable is None :
69
69
parsable_factory = PageResult
70
+ else :
71
+ raise ValueError (
72
+ 'One of the constructor_callable or the PageResult type parameter is required.'
73
+ )
70
74
self .parsable_factory = parsable_factory
71
75
self .pause_index = 0
72
76
self .headers : HeadersCollection = HeadersCollection ()
@@ -141,7 +145,6 @@ async def next(self) -> Optional[PageResult]:
141
145
if self .current_page is not None and not self .current_page .odata_next_link :
142
146
return None
143
147
response = await self .fetch_next_page ()
144
- print (f"Response - { type (response )} " )
145
148
page : PageResult = PageResult (response .odata_next_link , response .value ) # type: ignore
146
149
return page
147
150
You can’t perform that action at this time.
0 commit comments