Skip to content

Commit

Permalink
fix: instanciate list only if not ixisting when paring errors (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
julesbertrand authored Mar 1, 2024
1 parent 5536f67 commit 16028a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployer/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 16028a2

Please sign in to comment.