From: Philipp Hagemeister Date: Thu, 23 Jan 2014 09:36:47 +0000 (+0100) Subject: Correct --max-downloads with --ignore-errors X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=d3e5bbf437082bc43ff71a93eaaedb65c0b8917f;p=youtube-dl Correct --max-downloads with --ignore-errors --- diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index a48e8ba23..f30bc090a 100644 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -517,6 +517,8 @@ class YoutubeDL(object): except ExtractorError as de: # An error we somewhat expected self.report_error(compat_str(de), de.format_traceback()) break + except MaxDownloadsReached: + raise except Exception as e: if self.params.get('ignoreerrors', False): self.report_error(compat_str(e), tb=compat_str(traceback.format_exc()))