mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 23:07:07 -05:00 
			
		
		
		
	Detect errors in video data writes
This commit is contained in:
		@@ -566,7 +566,10 @@ class FileDownloader(object):
 | 
			
		||||
				except (OSError, IOError), err:
 | 
			
		||||
					self.trouble('ERROR: unable to open for writing: %s' % str(err))
 | 
			
		||||
					return False
 | 
			
		||||
			stream.write(data_block)
 | 
			
		||||
			try:
 | 
			
		||||
				stream.write(data_block)
 | 
			
		||||
			except (IOError, OSError), err:
 | 
			
		||||
				self.trouble('ERROR: unable to write data: %s' % str(err))
 | 
			
		||||
			block_size = self.best_block_size(after - before, data_block_len)
 | 
			
		||||
 | 
			
		||||
			# Progress message
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user