music-assistant-server
Branch:dev-lidarr-plugin
Commit Details
Fix AttributeError when provider is temporarily unavailable (#3157)
get_provider() can return None when a provider is temporarily unavailable (e.g., during reload or network issues). Both remove_item_from_library() and add_item_to_library() call .library_edit_supported() on the result without a None check, causing an AttributeError that surfaces as a 500 error. Co-authored-by: David Bishop <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
Author
David Bishop<[email protected]>
February 16, 2026 at 08:24 AM UTC
Committer
GitHub<[email protected]>
February 16, 2026 at 08:24 AM UTC
2additions
2deletions
1file changed
Parent commits
Changes
1 file
+2-2
Changed Files (1)
music_assistant/controllers/
music_assistant/controllers/music.py
+2-2