Correct --max-downloads with --ignore-errors
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 23 Jan 2014 09:36:47 +0000 (10:36 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 23 Jan 2014 09:36:47 +0000 (10:36 +0100)
youtube_dl/YoutubeDL.py

index a48e8ba23a34608072852dcb965640c55e5c37fc..f30bc090addaea51b830214244ec7351ff19e6f3 100644 (file)
@@ -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()))