go back to ast.literal_eval for pythonic questions in non-raw mode
This commit is contained in:
parent
c37ff3dd2b
commit
bfb8990051
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ def handle_submission(submissions, **info):
|
|||
}
|
||||
sub = test_result_sub["info"]["result"]
|
||||
if info["csq_mode"] != "raw":
|
||||
sub = eval(sub, info)
|
||||
sub = ast.literal_eval(sub, info)
|
||||
except Exception as err:
|
||||
msg = ""
|
||||
mfunc = info["csq_msg_function"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue