Small hotfix to fix issues related to the new apps list

This commit is contained in:
Alexandre Aubin 2019-04-25 19:34:58 +00:00
parent c1f4e18054
commit bad63e51dd

View file

@ -184,7 +184,7 @@ for app, info in apps_list.items():
url = "https://api.github.com/repos/{}/{}/compare/{}...{}".format(owner, repo, previous_rev, app_branch)
diff = get_json(url)
if not diff["commits"]:
if not diff or not diff["commits"]:
app_rev = previous_rev if previous_rev != 'HEAD' else app_rev
else:
# Only if those files got updated, do we want to update the