From eb693d2f4c58e10a450139e72b0414e331c481c2 Mon Sep 17 00:00:00 2001 From: Ido Doron Date: Sat, 2 Mar 2024 18:02:53 +0200 Subject: [PATCH] Fix issue with the logger --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 1c245f4..9711f4a 100644 --- a/main.py +++ b/main.py @@ -279,10 +279,10 @@ def on_download_success(filepath): if filepath is not None: return filepath except DownloadTimeoutException as e: - logger.error(f"Download timeout: {track.artist.name} - {track.title}", e) + logger.error(f"Download timeout: {track.artist.name} - {track.title}", exc_info=e) self.on_download_tineout() except (selenium.common.exceptions.NoSuchElementException, Exception) as e: - logger.error(f"Could not download {track.artist.name} - {track.title}", e) + logger.error(f"Could not download {track.artist.name} - {track.title}", exc_info=e) finally: self.wait_engine.pause() @@ -345,7 +345,7 @@ def process_deezer_url(url): artist = client.get_artist(artist_id) return artist except DeezerAPIException as e: - logger.error("A Deezer API error occurred", e) + logger.error("A Deezer API error occurred", exc_info=e) raise DownloaderException("Cannot access the track(s) in the provided Deezer URL")