Skip to content

Commit

Permalink
Ensure remainder chunks are yielded
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenFrankel committed Feb 26, 2024
1 parent f0627ac commit 866bc6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tap_spotify/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ def chunk_records(self, records: Iterable[dict]):
chunk.clear()

chunk.append(record)

if chunk:
yield list(chunk)

0 comments on commit 866bc6b

Please sign in to comment.