diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 2a779373a8..19dabef2d0 100644 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -524,7 +524,8 @@ def _free_formats_key(f): formats_to_download = [selected_format] break if not formats_to_download: - raise ExtractorError(u'requested format not available') + raise ExtractorError(u'requested format not available', + expected=True) if download: if len(formats_to_download) > 1: