Skip to content
Merged
2 changes: 1 addition & 1 deletion gridfs/asynchronous/grid_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ async def get_version(
try:
doc = await anext(cursor)
return AsyncGridOut(self._collection, file_document=doc, session=session)
except StopIteration:
except StopAsyncIteration:
raise NoFile("no version %d for filename %r" % (version, filename)) from None

async def get_last_version(
Expand Down
Loading
Loading