소스 검색

[downloader/common] report_retry: Don't crash when retries is infinite (fixes #8299)

Jaime Marquínez Ferrándiz 9 년 전
부모
커밋
32d77eeb04
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      youtube_dl/downloader/common.py

+ 1 - 1
youtube_dl/downloader/common.py

@@ -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."""