兼容旧版test_case数据

This commit is contained in:
zema1 2017-12-05 09:01:20 +08:00
parent 6c3e224e05
commit 003be998cd

View File

@ -124,7 +124,7 @@ class JudgeClient(object):
run_result["output_md5"] = None
run_result["output"] = None
if run_result["result"] == _judger.RESULT_SUCCESS:
if self._test_case_info["spj"]:
if self._test_case_info.get("spj"):
if not self._spj_config or not self._spj_version:
raise JudgeClientError("spj_config or spj_version not set")