Skip to content

Commit 1f7f8a9

Browse files
authored
PYTHON-5081 Convert test.test_gridfs to async (mongodb#2099)
1 parent 8b6be4a commit 1f7f8a9

File tree

5 files changed

+722
-80
lines changed

5 files changed

+722
-80
lines changed

gridfs/asynchronous/grid_file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ async def get_version(
231231
try:
232232
doc = await anext(cursor)
233233
return AsyncGridOut(self._collection, file_document=doc, session=session)
234-
except StopIteration:
234+
except StopAsyncIteration:
235235
raise NoFile("no version %d for filename %r" % (version, filename)) from None
236236

237237
async def get_last_version(

0 commit comments

Comments
 (0)