Additional Fix error on startup when no Apps or Radio plugins are installed for Squeezebox (#150475)

This commit is contained in:
peteS-UK
2025-08-12 10:55:21 +01:00
committed by GitHub
parent 596e4883b1
commit 067cab71fa

View File

@@ -157,7 +157,7 @@ class BrowseData:
cmd = ["apps", 0, browse_limit]
result = await player.async_query(*cmd)
if result["appss_loop"]:
if result and result.get("appss_loop"):
for app in result["appss_loop"]:
app_cmd = "app-" + app["cmd"]
if app_cmd not in self.known_apps_radios:
@@ -169,7 +169,7 @@ class BrowseData:
)
cmd = ["radios", 0, browse_limit]
result = await player.async_query(*cmd)
if result["radioss_loop"]:
if result and result.get("radioss_loop"):
for app in result["radioss_loop"]:
app_cmd = "app-" + app["cmd"]
if app_cmd not in self.known_apps_radios: