commit 78a3a9f89ef4a9918c0e6dc854b99df9c2a94e4e
parent a7685f3bf4275bfc0f390146e4ac99139d5b96b9
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Mon, 28 Oct 2013 11:41:43 +0100
Make "requested format not available" expected (#1655)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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: