Fixing error 34

This commit is contained in:
Rafael Vargas
2023-01-28 10:42:07 -03:00
parent 2ffbab86eb
commit f4e9e46d6d
4 changed files with 60 additions and 5 deletions

View File

@@ -56,8 +56,8 @@ class Downloader:
song.finish_down(song_info)
return song
# Convert yt_dlp error to my own error
except DownloadError:
raise DownloadingError()
except DownloadError as e:
raise DownloadingError(e.msg)
@run_async
def extract_info(self, url: str) -> List[dict]: