Skip to content

Commit

Permalink
suppress iteration internals
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfischer2781 committed Oct 13, 2024
1 parent 891c34a commit 44cfa92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncstdlib/itertools.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async def batched(
batch.append(await anext(item_iter))
except StopAsyncIteration:
if strict and len(batch) < n:
raise ValueError("batched(): incomplete batch")
raise ValueError("batched(): incomplete batch") from None
if batch:
yield tuple(batch)
else:
Expand Down

0 comments on commit 44cfa92

Please sign in to comment.