Skip to content

Commit c660d6d

Browse files
committed
add back import
1 parent fd9fe79 commit c660d6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdks/python/apache_beam/io/mongodbio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
from pymongo import DESCENDING
9898
from pymongo import MongoClient
9999
from pymongo import ReplaceOne
100+
from pymongo.driver_info import DriverInfo
100101
except ImportError:
101102
objectid = None
102103
json_util = None
@@ -105,6 +106,7 @@
105106
DESCENDING = -1
106107
MongoClient = None
107108
ReplaceOne = None
109+
DriverInfo = None
108110
_LOGGER.warning("Could not find a compatible bson package.")
109111

110112
__all__ = ["ReadFromMongoDB", "WriteToMongoDB"]

0 commit comments

Comments
 (0)