Skip to content

A feature-rich command-line audio/video downloader

Correct --max-downloads with --ignore-errors

Philipp Hagemeisterd3e5bbf43708
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index a48e8ba23a..f30bc090ad 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()))