Make "requested format not available" expected (#1655)
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 28 Oct 2013 10:41:43 +0000 (11:41 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 28 Oct 2013 10:41:59 +0000 (11:41 +0100)
youtube_dl/YoutubeDL.py

index 2a779373a8ac1c51dc011c8c0467157dc4426bbd..19dabef2d012a9e9f678cc2bf1a649ab8714ec11 100644 (file)
@@ -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: