diff --git a/packages/python_interpreter/main.py b/packages/python_interpreter/main.py index ccd1f1cd6..20144daf3 100644 --- a/packages/python_interpreter/main.py +++ b/packages/python_interpreter/main.py @@ -358,7 +358,7 @@ class Main(star.Star): if not ok: if traceback: - obs = f"## Observation \n When execute the code: ```python\n{code_clean}\n```\n\n Error occured:\n\n{traceback}\n Need to improve/fix the code." + obs = f"## Observation \n When execute the code: ```python\n{code_clean}\n```\n\n Error occurred:\n\n{traceback}\n Need to improve/fix the code." else: logger.warning(f"未从沙箱输出中捕获到合法的输出。沙箱输出日志: {logs}") break @@ -393,4 +393,4 @@ class Main(star.Star): await container.kill() return [f"[Error]: Container has been killed due to timeout ({timeout}s)."] finally: - await container.delete() \ No newline at end of file + await container.delete()