Fix key error when missing the cache
This commit is contained in:
parent
c60265791e
commit
20e56a755e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user