Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Fix issue with the logger
Browse files Browse the repository at this point in the history
  • Loading branch information
idodoron11 committed Mar 2, 2024
1 parent 39bdb57 commit eb693d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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")


Expand Down

0 comments on commit eb693d2

Please sign in to comment.