From 6ec09a3c59205707e9c0460ba535115db31876ce Mon Sep 17 00:00:00 2001 From: "jean-charles.verdier" Date: Wed, 3 Dec 2025 08:30:51 -0500 Subject: [PATCH] feature: scroll function parses the response before yielding --- flareio/api_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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?"