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 untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A

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: