mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 08:17:08 -05:00 
			
		
		
		
	Correct --max-downloads with --ignore-errors
This commit is contained in:
		@@ -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()))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user