From 75e5766a3ffb920ea8d070120f3d5fb4ef008970 Mon Sep 17 00:00:00 2001 From: aries_ckt <916701291@qq.com> Date: Thu, 28 Sep 2023 15:41:11 +0800 Subject: [PATCH] fix:mysql connection error Close #638 --- pilot/connections/manages/connection_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pilot/connections/manages/connection_manager.py b/pilot/connections/manages/connection_manager.py index 58f089dbc..ad97d1fd7 100644 --- a/pilot/connections/manages/connection_manager.py +++ b/pilot/connections/manages/connection_manager.py @@ -108,7 +108,8 @@ class ConnectManager: CFG.LOCAL_DB_PASSWORD, "", ) - if CFG.LOCAL_DB_PATH: + db_type = DBType.of_db_type(CFG.LOCAL_DB_TYPE) + if db_type.is_file_db(): db_name = CFG.LOCAL_DB_NAME db_type = CFG.LOCAL_DB_TYPE db_path = CFG.LOCAL_DB_PATH