Skip to content

Commit 9ce37cf

Browse files
committed
Drop unsupported default config directly instead of remove_provider_config
remove_provider_config refuses builtin providers and runs loaded-provider cleanup (unload, library/player teardown). For an auto-created default that failed its requirements check it never loaded, so remove the config key directly — that persists, is guard-free, and skips cleanup that does not apply.
1 parent 23356b4 commit 9ce37cf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

music_assistant/mass.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,10 @@ async def load_provider(
745745
prov_conf.name or prov_conf.instance_id,
746746
exc,
747747
)
748-
await self.config.remove_provider_config(instance_id)
748+
# The provider never loaded, so just drop its auto-created config key.
749+
# (remove_provider_config refuses builtin providers and runs loaded-provider
750+
# cleanup we don't need here; a direct remove persists and is guard-free.)
751+
self.config.remove(f"{CONF_PROVIDERS}/{instance_id}")
749752
return
750753
prov_conf.last_error = str(exc)
751754
self.config.set(f"{CONF_PROVIDERS}/{instance_id}/last_error", str(exc))

0 commit comments

Comments
 (0)