From: Marcel van der Veldt Date: Sat, 11 Jun 2022 10:19:50 +0000 (+0200) Subject: fix indexerror X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=c7dc0179d8709fbc9cf478b74dc8a9443940ef55;p=music-assistant-server.git fix indexerror --- 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,