From ce672ece3ea89c72a2073e8abd9f8d382541b047 Mon Sep 17 00:00:00 2001 From: Jan Max Meyer Date: Fri, 28 Apr 2023 11:49:49 +0200 Subject: [PATCH] fix: Don't assume "builds" in the default config (#40) --- src/viur_cli/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viur_cli/conf.py b/src/viur_cli/conf.py index 130a817..96d042d 100644 --- a/src/viur_cli/conf.py +++ b/src/viur_cli/conf.py @@ -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"