From 89ef72392b225b0cf721a93ceecbba42f0fb0ac3 Mon Sep 17 00:00:00 2001 From: Chris Fulljames Date: Fri, 28 Mar 2025 17:07:39 -0400 Subject: [PATCH] Log yt-dlp errors --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 6ef38cd..291694e 100644 --- a/main.py +++ b/main.py @@ -476,7 +476,8 @@ def convert_song(tmp_file, request_file, yt_url): os.unlink(tmp_file.name) # Delete file so yt-dlp doesn't complain try: yt_import(tmp_file, yt_url) - except DownloadError: + except DownloadError as ex: + app.logger.warning(str(ex)) flash_and_log(f"Failed to import from YouTube URL: {yt_url}") return False -- 2.39.5