Chore: Add exception details when unload of a provider fails
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 23 Jan 2025 21:07:14 +0000 (22:07 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 23 Jan 2025 21:07:14 +0000 (22:07 +0100)
music_assistant/mass.py

index 675d4bc65936e587084a20a1bdd5ef002053a24a..9b081c0ea122014271ca594de59f47e4b27d97a1 100644 (file)
@@ -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()