Skip to content

Commit 806393f

Browse files
committed
fix: update globals_v initialization to use an empty dictionary in tool_code.py
1 parent 0bd9e17 commit 806393f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/common/utils/tool_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def exec_code(self, code_str, keywords):
6464
sys.path += {python_paths}
6565
locals_v={'{}'}
6666
keywords={keywords}
67-
globals_v=globals()
67+
globals_v={'{}'}
6868
exec({dedent(code_str)!a}, globals_v, locals_v)
6969
f_name, f = locals_v.popitem()
7070
for local in locals_v:

0 commit comments

Comments
 (0)