From 7daf8d4c2a4043bdef3c968071e7492cb10cd8a2 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Thu, 9 May 2019 19:43:02 +0800 Subject: [PATCH] fixed pymongo connection issue --- crawlab/db/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: