Protect against badly-authored installs arrays when checking if blocking applications are running.

This commit is contained in:
Greg Neagle
2019-07-30 08:13:35 -07:00
parent 16f4f7f9a1
commit 11cd7db873

View File

@@ -106,7 +106,7 @@ def blocking_applications_running(pkginfoitem):
# from 'installs' list if it exists
appnames = [os.path.basename(item.get('path'))
for item in pkginfoitem.get('installs', [])
if item['type'] == 'application']
if item.get('type') == 'application']
display.display_debug1("Checking for %s" % appnames)
running_apps = [appname for appname in appnames