Commit 45f08b32 by nzy

Fix

parent 5804266b
......@@ -6,6 +6,7 @@ from anpl.sandbox import import_module_from_string
import numpy as np
import time
import traceback
from copy import deepcopy
history = []
def print_msg(message):
......@@ -70,7 +71,8 @@ while not is_correct:
logger.log("user", "check", code)
try:
m = import_module_from_string(code)
out = m.main(inp)
inp_t = deepcopy(inp_t)
out = m.main(inp_t)
except Exception as e:
logger.log("system", "check", f"crash: {e}")
system_info("[red]Crash[/red]")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment