diff --git a/flareio/api_client.py b/flareio/api_client.py index bcb4c18..c188f76 100644 --- a/flareio/api_client.py +++ b/flareio/api_client.py @@ -266,10 +266,10 @@ def scroll( ) resp.raise_for_status() - yield resp - resp_body = resp.json() + yield resp + if "next" not in resp_body: raise Exception( "'next' was not found in the response body. Are you sure it supports scrolling?"