mirror of
https://github.com/munki/munki.git
synced 2026-01-06 06:29:56 -06:00
Don't exit with an unhandled exception if LaunchServices._LSCopyAllApplicationURLs(None) returns None/nil
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user