]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[downloader/common] report_retry: Don't crash when retries is infinite (fixes #8299)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 22 Jan 2016 13:49:17 +0000 (14:49 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 22 Jan 2016 13:49:17 +0000 (14:49 +0100)
youtube_dl/downloader/common.py

index beae8c4d0218953be006cf5fd61b5071149b192b..fc7521598c0413bdf97e3e286a6c334e8615dbde 100644 (file)
@@ -295,7 +295,7 @@ class FileDownloader(object):
 
     def report_retry(self, count, retries):
         """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):
         """Report file has already been fully downloaded."""