From 85ed2df4082311997ea4c3f0f4d5e0544546beb4 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Thu, 23 Jan 2025 22:07:14 +0100 Subject: [PATCH] Chore: Add exception details when unload of a provider fails --- music_assistant/mass.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/music_assistant/mass.py b/music_assistant/mass.py index 675d4bc6..9b081c0e 100644 --- a/music_assistant/mass.py +++ b/music_assistant/mass.py @@ -568,7 +568,9 @@ class MusicAssistant: try: await provider.unload(is_removed) except Exception as err: - LOGGER.warning("Error while unload provider %s: %s", provider.name, str(err)) + LOGGER.warning( + "Error while unloading provider %s: %s", provider.name, str(err), exc_info=err + ) finally: self._providers.pop(instance_id, None) await self._update_available_providers_cache() -- 2.34.1