From c7dc0179d8709fbc9cf478b74dc8a9443940ef55 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sat, 11 Jun 2022 12:19:50 +0200 Subject: [PATCH] fix indexerror --- music_assistant/helpers/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/helpers/audio.py b/music_assistant/helpers/audio.py index 41adbeb5..cb59054d 100644 --- a/music_assistant/helpers/audio.py +++ b/music_assistant/helpers/audio.py @@ -169,7 +169,7 @@ async def analyze_audio(mass: MusicAssistant, streamdetails: StreamDetails) -> N .split("LUFS")[0] ) loudness = float(loudness_str.strip()) - except (ValueError, AttributeError): + except (IndexError, ValueError, AttributeError): LOGGER.warning( "Could not determine integrated loudness of %s - %s", streamdetails.uri, -- 2.34.1