From 8736aca27bfdf37a7882ea08cb3bfe91c69c78a0 Mon Sep 17 00:00:00 2001 From: Googolplexed0 <65880807+Googolplexed0@users.noreply.github.com> Date: Mon, 10 Nov 2025 22:45:31 -0600 Subject: [PATCH] add/mirror exception messages for PlayableContentFeeder loading content functions --- librespot/audio/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/librespot/audio/__init__.py b/librespot/audio/__init__.py index 725d9c1..6f0f067 100644 --- a/librespot/audio/__init__.py +++ b/librespot/audio/__init__.py @@ -778,6 +778,7 @@ class PlayableContentFeeder: self.logger.fatal( "Couldn't find any suitable audio file, available: {}".format( episode.audio)) + raise FeederException("Cannot find suitable audio file") return self.load_stream(file, None, episode, preload, halt_listener) def load_track(self, track_id_or_track: typing.Union[TrackId, @@ -797,7 +798,7 @@ class PlayableContentFeeder: self.logger.fatal( "Couldn't find any suitable audio file, available: {}".format( track.file)) - raise FeederException() + raise FeederException("Cannot find suitable audio file") return self.load_stream(file, track, None, preload, halt_listener) def pick_alternative_if_necessary(