Skip to content

Commit 695e38a

Browse files
authored
Merge branch 'master' into PYTHON-5073
2 parents 469d10b + 61c3ddd commit 695e38a

File tree

7 files changed

+948
-89
lines changed

7 files changed

+948
-89
lines changed

gridfs/asynchronous/grid_file.py

Lines changed: 1 addition & 1 deletion
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)