diff --git a/crawlab/db/manager.py b/crawlab/db/manager.py index 71ea9b2b..4c5535e7 100644 --- a/crawlab/db/manager.py +++ b/crawlab/db/manager.py @@ -13,7 +13,7 @@ class DbManager(object): """ def __init__(self): - self.mongo = MongoClient(host=MONGO_HOST, port=MONGO_PORT) + self.mongo = MongoClient(host=MONGO_HOST, port=MONGO_PORT, connect=False) self.db = self.mongo[MONGO_DB] def save(self, col_name: str, item: dict, **kwargs) -> None: