aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-10-28 11:41:43 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-10-28 11:41:59 +0100
commit78a3a9f89ef4a9918c0e6dc854b99df9c2a94e4e (patch)
treed6cda10125a9754d53e095259e7a476979b90c23
parenta7685f3bf4275bfc0f390146e4ac99139d5b96b9 (diff)
Make "requested format not available" expected (#1655)
-rw-r--r--youtube_dl/YoutubeDL.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 2a779373a..19dabef2d 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: