Skip to content

PYTHON-5081 Convert test.test_gridfs to async #2099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Feb 11, 2025
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