Fix key error when missing the cache

This commit is contained in:
decentral1se 2021-04-03 20:46:34 +02:00
parent c60265791e
commit 20e56a755e
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 5 additions and 1 deletions

View File

@ -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: