aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/FileDownloader.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-03-29 00:19:58 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-03-29 00:20:13 +0100
commita91556fd74adf8ccfa4f923e21a0150e97d38bde (patch)
tree45efa482468100ac9151b475260cb01c5dab3b73 /youtube_dl/FileDownloader.py
parent1447f728b57601b109ac1c3ff913e9c0d5238c9c (diff)
Add a note on MaxDownloadsReached (#732, thanks to CBGoodBuddy)
Diffstat (limited to 'youtube_dl/FileDownloader.py')
-rw-r--r--youtube_dl/FileDownloader.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index 725d4a016..96130152d 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -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()))