David 1 month ago
parent
commit
4e27448e68
1 changed files with 2 additions and 3 deletions
  1. 2 3
      common/database_dml_koi.py

+ 2 - 3
common/database_dml_koi.py

@@ -496,7 +496,6 @@ def get_scaler_model_from_mongo(args: Dict[str, Any], only_feature_scaler: bool
         raise RuntimeError(f"❌ 未知系统异常: {str(e)}") from e
         raise RuntimeError(f"❌ 未知系统异常: {str(e)}") from e
     finally:
     finally:
         # ------------------------- 资源清理 -------------------------
         # ------------------------- 资源清理 -------------------------
-        # if client:
-        #     client.close()
-        pass
+        if client:
+            client.close()