Skip to content

Commit

Permalink
PYTHON-5081 Convert test.test_gridfs to async (#2099)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyStick authored Feb 11, 2025
1 parent 8b6be4a commit 1f7f8a9
Show file tree
Hide file tree
Showing 5 changed files with 722 additions and 80 deletions.
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

0 comments on commit 1f7f8a9

Please sign in to comment.