From 3a2e94be503d735d7c10716a4d4af82ffb7f51b0 Mon Sep 17 00:00:00 2001 From: s-martin Date: Fri, 3 May 2024 22:06:39 +0200 Subject: [PATCH] handle exception in logger --- src/jukebox/components/playermpd/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jukebox/components/playermpd/__init__.py b/src/jukebox/components/playermpd/__init__.py index f726c15c3..67ebdbc28 100644 --- a/src/jukebox/components/playermpd/__init__.py +++ b/src/jukebox/components/playermpd/__init__.py @@ -656,7 +656,7 @@ def play_folder(self, folder: str, recursive: bool = False, try: self.resume() except mpd.base.CommandError as e: - logger.exception("Failed to resume folder: %s", folder) + logger.exception("Failed to resume folder: %s", folder, exc_info=e) self.mpd_client.play() else: self.mpd_client.play()