修正了输入体动路径的赋值逻辑,并调整了异常处理的注释
This commit is contained in:
@ -1445,7 +1445,7 @@ class Data:
|
||||
# 没有体动也能打标
|
||||
artifact_result = PublicFunc.examine_file(Config["Path"]["Input_Artifact"], Filename.ARTIFACT_A, Params.ENDSWITH_TXT)
|
||||
if artifact_result.status:
|
||||
Config["Path"]["Input_Artifact"] = result.data["path"]
|
||||
Config["Path"]["Input_Artifact"] = artifact_result.data["path"]
|
||||
else:
|
||||
pass
|
||||
# return result
|
||||
@ -1457,17 +1457,17 @@ class Data:
|
||||
Config["Path"]["Save_2"] = str(
|
||||
Path(Config["Path"]["Save_2"]) / Path(Filename.SA_LABEL_ADD + Params.ENDSWITH_CSV))
|
||||
|
||||
if artifact_result.status:
|
||||
if not artifact_result.status:
|
||||
# return Result().failure(info=Constants.INPUT_FAILURE + "\n" +
|
||||
# Filename.ARTIFACT_A + ":" +
|
||||
# Config["Path"]["Input_Artifact"] +
|
||||
# Constants.FAILURE_REASON["Path_Not_Exist"])
|
||||
|
||||
PublicFunc.msgbox_output(self, Constants.INPUT_FAILURE + "\n" +
|
||||
Filename.ARTIFACT_A + ":" +
|
||||
Config["Path"]["Input_Artifact"] +
|
||||
Constants.FAILURE_REASON["Path_Not_Exist"],
|
||||
Constants.MSGBOX_TYPE_WARNING)
|
||||
# PublicFunc.msgbox_output(self, Constants.INPUT_FAILURE + "\n" +
|
||||
# Filename.ARTIFACT_A + ":" +
|
||||
# Config["Path"]["Input_Artifact"] +
|
||||
# Constants.FAILURE_REASON["Path_Not_Exist"],
|
||||
# Constants.MSGBOX_TYPE_WARNING)
|
||||
|
||||
Config["Path"]["Input_Artifact"] = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user