1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-22 00:05:37 +08:00

Add a note on MaxDownloadsReached (#732, thanks to CBGoodBuddy)

This commit is contained in:
Philipp Hagemeister 2013-03-29 00:19:58 +01:00
parent 1447f728b5
commit a91556fd74

View File

@ -548,6 +548,9 @@ class FileDownloader(object):
except ExtractorError as de: # An error we somewhat expected
self.trouble(u'ERROR: ' + compat_str(de), de.format_traceback())
break
except MaxDownloadsReached:
self.to_screen(u'[info] Maximum number of downloaded files reached.')
raise
except Exception as e:
if self.params.get('ignoreerrors', False):
self.trouble(u'ERROR: ' + compat_str(e), tb=compat_str(traceback.format_exc()))