We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91e845e commit 8a65ddeCopy full SHA for 8a65dde
1 file changed
pytrackunit/tuiter.py
@@ -57,6 +57,8 @@ def __aiter__(self):
57
return self
58
59
async def __anext__(self):
60
+ if len(self.iterators) == 0:
61
+ raise StopAsyncIteration
62
try:
63
return await self.iterators[self.iterator_pos].__anext__()
64
except StopAsyncIteration as exc:
0 commit comments