mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[downloader/common] report_retry: Don't crash when retries is infinite (fixes #8299)
This commit is contained in:
		| @@ -295,7 +295,7 @@ class FileDownloader(object): | |||||||
|  |  | ||||||
|     def report_retry(self, count, retries): |     def report_retry(self, count, retries): | ||||||
|         """Report retry in case of HTTP error 5xx""" |         """Report retry in case of HTTP error 5xx""" | ||||||
|         self.to_screen('[download] Got server HTTP error. Retrying (attempt %d of %d)...' % (count, retries)) |         self.to_screen('[download] Got server HTTP error. Retrying (attempt %d of %.0f)...' % (count, retries)) | ||||||
|  |  | ||||||
|     def report_file_already_downloaded(self, file_name): |     def report_file_already_downloaded(self, file_name): | ||||||
|         """Report file has already been fully downloaded.""" |         """Report file has already been fully downloaded.""" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz