From a3ca7e82c72d05947d7fe94f882b3c10b6d6bb45 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Sat, 23 Nov 2024 00:23:08 +0800 Subject: [PATCH] =?UTF-8?q?hotfix:=20=E8=B0=83=E7=94=A8=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E6=97=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/provider/tools/toolmgr.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/provider/tools/toolmgr.py b/pkg/provider/tools/toolmgr.py index 3e412eaf..c7bd0018 100644 --- a/pkg/provider/tools/toolmgr.py +++ b/pkg/provider/tools/toolmgr.py @@ -118,10 +118,9 @@ class ToolManager: traceback.print_exc() return f"error occurred when executing function {name}: {e}" finally: - plugin = None - for p in self.ap.plugin_mgr.plugins: + for p in self.ap.plugin_mgr.plugins(): if function in p.content_functions: plugin = p break @@ -137,4 +136,4 @@ class ToolManager: }, function_name=function.name, function_description=function.description, - ) + ) \ No newline at end of file