Skip to content

A feature-rich command-line audio/video downloader

Make "requested format not available" expected (#1655)

Philipp Hagemeister78a3a9f89ef4
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 @@ class YoutubeDL(object):
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: