diff --git a/plugins/data_query/nosql_mongodb.py b/plugins/data_query/nosql_mongodb.py index 8a2f78999..54749ae13 100755 --- a/plugins/data_query/nosql_mongodb.py +++ b/plugins/data_query/nosql_mongodb.py @@ -151,7 +151,7 @@ class nosqlMongodb(): except pymongo.errors.ConnectionFailure: return False except Exception: - self.__DB_ERR = mw.get_error_info() + self.__DB_ERR = mw.getTracebackInfo() return False # 获取配置项 diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 03a33f6fe..c9d248234 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -944,7 +944,6 @@ def testData(): def test(): - initUserRoot() ''' cd /www/server/mdserver-web && source bin/activate && python3 /www/server/mdserver-web/plugins/mongodb/index.py test