mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 00:57:07 -05:00 
			
		
		
		
	Abort download in case of error writing file data to disk
This commit is contained in:
		@@ -594,7 +594,8 @@ class FileDownloader(object):
 | 
			
		||||
			try:
 | 
			
		||||
				stream.write(data_block)
 | 
			
		||||
			except (IOError, OSError), err:
 | 
			
		||||
				self.trouble('\nERROR: unable to write data: %s' % str(err))
 | 
			
		||||
				self.trouble(u'\nERROR: unable to write data: %s' % str(err))
 | 
			
		||||
				return False
 | 
			
		||||
			block_size = self.best_block_size(after - before, data_block_len)
 | 
			
		||||
 | 
			
		||||
			# Progress message
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user