Skip to content

Commit

Permalink
Chore: Add exception details when unload of a provider fails
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Jan 23, 2025
1 parent da246f2 commit 85ed2df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion music_assistant/mass.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,9 @@ async def unload_provider(self, instance_id: str, is_removed: bool = False) -> N
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()
Expand Down

0 comments on commit 85ed2df

Please sign in to comment.