1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

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

This commit is contained in:
Philipp Hagemeister 2014-01-23 10:36:47 +01:00
parent 18a25c5d78
commit d3e5bbf437

View 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()))