diff --git a/deployer/utils/utils.py b/deployer/utils/utils.py index 1bd6cc7..968757e 100644 --- a/deployer/utils/utils.py +++ b/deployer/utils/utils.py @@ -316,7 +316,7 @@ def _parse_validation_errors( else: config_name = error["loc"][3] error_row = {"type": error["type"], "msg": error["msg"]} - parsed_errors[pipeline_name][config_name] = [] + parsed_errors[pipeline_name].setdefault(config_name, []) if len(error["loc"]) > 4: error_row["field"] = error["loc"][5] parsed_errors[pipeline_name][config_name].append(error_row)