Don't exit with an unhandled exception if LaunchServices._LSCopyAllApplicationURLs(None) returns None/nil

This commit is contained in:
Greg Neagle
2018-06-25 11:28:34 -07:00
parent 43cedc5d1c
commit e2a4a12950

View File

@@ -427,7 +427,7 @@ def launchservices_installed_apps():
# we access a "protected" function from LaunchServices
# pylint: disable=W0212
apps = LaunchServices._LSCopyAllApplicationURLs(None)
apps = LaunchServices._LSCopyAllApplicationURLs(None) or []
applist = []
for app in apps:
app_path = app.path()