Introduced Trouble(Exception) for more elegant non-fatal errors handling
[youtube-dl] / youtube_dl / utils.py
index 6e982157c4811b9db43642af3b9ee90d8ab5e376..d18073d72894c905b92233d0493cf83d525a6607 100644 (file)
@@ -290,6 +290,13 @@ class ContentTooShortError(Exception):
                self.expected = expected
 
 
+class Trouble(Exception):
+       """Trouble helper exception
+       
+       This is an exception to be handled with
+       FileDownloader.trouble
+       """
+
 class YoutubeDLHandler(urllib2.HTTPHandler):
        """Handler for HTTP requests and responses.