Refactor error handling to use GamdlError

This commit is contained in:
Rafael Moraes
2025-11-27 00:55:32 -03:00
parent 7a7c1adb22
commit 76cc80cba8
+2 -9
View File
@@ -17,9 +17,7 @@ from ..downloader import (
CoverFormat,
DownloadItem,
DownloadMode,
FormatNotAvailable,
NotStreamable,
SyncedLyricsOnly,
GamdlError,
RemuxFormatMusicVideo,
RemuxMode,
)
@@ -603,12 +601,7 @@ async def main(
try:
await downloader.download(download_item)
except (
FileExistsError,
NotStreamable,
FormatNotAvailable,
SyncedLyricsOnly,
) as e:
except GamdlError as e:
logger.warning(
download_queue_progress + f' Skipping "{media_title}": {e}'
)