Skip to content

Commit

Permalink
fix: Don't assume "builds" in the default config (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
phorward authored Apr 28, 2023
1 parent 76b4fc9 commit ce672ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viur_cli/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def update_config(path=None):

if projectConfig["default"]["format"] == "1.1.0":
projectConfig["default"]["format"] = "1.1.1"
builds = projectConfig["default"]["builds"].copy()
builds = projectConfig["default"].get("builds", {}).copy()
for k, v in builds.items():
if builds[k]["kind"] == "script":
builds[k]["kind"] = "exec"
Expand Down

0 comments on commit ce672ec

Please sign in to comment.