diff --git a/bin/app-json.py b/bin/app-json.py index f361de6..09d9c8e 100755 --- a/bin/app-json.py +++ b/bin/app-json.py @@ -168,7 +168,11 @@ def get_app_versions(app_path, cached_apps_json): initial_branch = _run_cmd("git rev-parse --abbrev-ref HEAD") app_name = basename(app_path) - existing_tags = cached_apps_json[app_name]["versions"].keys() + + try: + existing_tags = cached_apps_json[app_name]["versions"].keys() + except KeyError: + existing_tags = [] for tag in tags: if tag in existing_tags: