Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit af6c3e5

Browse files
authored
fix: pymongo requires pymongo.collection import (#28)
The latest version of pymongo (4.9.1) doesn't define `pymongo.collection` unless you import it explicitly. edx-platform uses an older pymongo (4.4.0) which is compatible whether or not you import `pymongo.collection` explicitly.
1 parent ba32fd3 commit af6c3e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mongodb_proxy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from functools import wraps
1818
import logging
1919
import pymongo
20+
import pymongo.collection
2021
import time
2122

2223
log = logging.getLogger(__name__)

0 commit comments

Comments
 (0)