Skip to content

Commit

Permalink
Update load_all_pages.py
Browse files Browse the repository at this point in the history
  • Loading branch information
saleweaver authored Dec 20, 2024
1 parent 8a46bdd commit a2ab8f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sp_api/util/load_all_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ def wrapper(*args, **kwargs):
)
if sleep_time > 0:
time.sleep(sleep_time)
if next_token_only:
kwargs = {next_token_param: res.next_token}
if next_token_only:
kwargs = {next_token_param: res.next_token}
else:
kwargs.update({next_token_param: res.next_token, **extras})
kwargs.update({next_token_param: res.next_token, **extras})
else:
done = True

Expand Down

0 comments on commit a2ab8f2

Please sign in to comment.