summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-01-23 10:36:47 +0100
committerPhilipp Hagemeister <[email protected]>2014-01-23 10:36:47 +0100
commitd3e5bbf437082bc43ff71a93eaaedb65c0b8917f (patch)
treeb46baa62ccd0908a26438453eb30ec8f60f64477 /youtube_dl/YoutubeDL.py
parent18a25c5d78528dd27e2a92aa0d44088a8c04bcf0 (diff)
downloadyoutube-dl-d3e5bbf437082bc43ff71a93eaaedb65c0b8917f.tar.gz
youtube-dl-d3e5bbf437082bc43ff71a93eaaedb65c0b8917f.zip
Correct --max-downloads with --ignore-errors
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rw-r--r--youtube_dl/YoutubeDL.py2
1 files changed, 2 insertions, 0 deletions
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()))