refactor: Handle unknown artifact type in post_process_raw function

This commit is contained in:
ogabrielluiz 2024-06-17 18:49:11 -03:00
commit 238db494f1

View file

@ -46,5 +46,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:
raw = str(raw)
return raw