mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-03-16 13:02:21 +09:00
Prevent MaxDownloadsReached exception from printing an empty error message
This commit is contained in:
parent
7843cf09e8
commit
8e331b2e96
@ -522,6 +522,9 @@ class FileDownloader(object):
|
|||||||
except ExtractorError as de: # An error we somewhat expected
|
except ExtractorError as de: # An error we somewhat expected
|
||||||
self.trouble(u'ERROR: ' + compat_str(de), de.format_traceback())
|
self.trouble(u'ERROR: ' + compat_str(de), de.format_traceback())
|
||||||
break
|
break
|
||||||
|
except MaxDownloadsReached:
|
||||||
|
# self.to_screen(u'[info] Maximum number of downloaded files reached.')
|
||||||
|
raise
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if self.params.get('ignoreerrors', False):
|
if self.params.get('ignoreerrors', False):
|
||||||
self.trouble(u'ERROR: ' + compat_str(e), tb=compat_str(traceback.format_exc()))
|
self.trouble(u'ERROR: ' + compat_str(e), tb=compat_str(traceback.format_exc()))
|
||||||
|
Loading…
Reference in New Issue
Block a user