From 95560183884ce3e71b1653ebfdaaca50398de63f Mon Sep 17 00:00:00 2001 From: shin Date: Thu, 26 Dec 2019 14:20:17 +0530 Subject: [PATCH] Handle ImportError as a warning --- youtube_dl/postprocessor/embedthumbnail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py index 699eeca0c..3523f4992 100644 --- a/youtube_dl/postprocessor/embedthumbnail.py +++ b/youtube_dl/postprocessor/embedthumbnail.py @@ -8,7 +8,7 @@ try: import imghdr from mutagen.mp4 import MP4, MP4Cover, MP4MetadataError except ImportError: - raise Exception('[embedthumbnail] Mutagen isn\'t found, install from PyPI.') + raise Warning('[embedthumbnail] Mutagen isn\'t found for M4A thumbnail embedding, install from PyPI.') from .ffmpeg import FFmpegPostProcessor