fix: handle unknown artifact type in post_process_raw function (#2527)
Handle the case where the artifact type is unknown and the raw value is not None in the post_process_raw function. Set the raw value to "Built Successfully ✨" in this case.
This commit is contained in:
parent
8980e75723
commit
a9f955d916
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ def get_artifact_type(value, build_result=None) -> str:
|
|||
def post_process_raw(raw, artifact_type: str):
|
||||
if artifact_type == ArtifactType.STREAM.value:
|
||||
raw = ""
|
||||
elif artifact_type == ArtifactType.UNKNOWN.value:
|
||||
elif artifact_type == ArtifactType.UNKNOWN.value and raw is not None:
|
||||
raw = "Built Successfully ✨"
|
||||
|
||||
return raw
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue