Merge pull request #358 from eltociear/patch-1

chore: update main.py
This commit is contained in:
Soulter
2025-02-05 01:34:04 +08:00
committed by GitHub
+2 -2
View File
@@ -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()
await container.delete()