Skip to content

Commit e8ea582

Browse files
Update src/unstract/clone/client.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: Chandrasekharan M <117059509+chandrasekharan-zipstack@users.noreply.github.com>
1 parent 3dacd58 commit e8ea582

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/unstract/clone/client.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ def _paginate(
189189
next_url = result.get("next")
190190
if not next_url:
191191
break
192+
if not isinstance(next_url, str):
193+
raise PlatformAPIError(
194+
f"GET {path} pagination 'next' is not a URL string"
195+
)
192196
if next_url in seen:
193197
raise PlatformAPIError(f"GET {path} pagination looped at {next_url}")
194198
seen.add(next_url)

0 commit comments

Comments
 (0)