Subsonic: Protect all list iteration from possible NoneType (#2180)
authorEric Munson <eric@munsonfam.org>
Thu, 8 May 2025 15:17:27 +0000 (11:17 -0400)
committerGitHub <noreply@github.com>
Thu, 8 May 2025 15:17:27 +0000 (17:17 +0200)
commit9ab07eeae95276f381cbd6cae093b42dcfe3b62d
tree83f49cb50276b045021ea8cd37236af311f87a74
parent6efdfb839634951718c215ac18da29fdb9affbfd
Subsonic: Protect all list iteration from possible NoneType (#2180)

Fix: Subsonic: Protect all list iteration from possible NoneType

The specification allows for these fields to be None, so we need to check
that they exist before iterating them.

Signed-off-by: Eric B Munson <eric@munsonfam.org>
music_assistant/providers/opensubsonic/parsers.py
music_assistant/providers/opensubsonic/sonic_provider.py