Skip to content

Commit 44cfa92

Browse files
suppress iteration internals
1 parent 891c34a commit 44cfa92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncstdlib/itertools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async def batched(
141141
batch.append(await anext(item_iter))
142142
except StopAsyncIteration:
143143
if strict and len(batch) < n:
144-
raise ValueError("batched(): incomplete batch")
144+
raise ValueError("batched(): incomplete batch") from None
145145
if batch:
146146
yield tuple(batch)
147147
else:

0 commit comments

Comments
 (0)