mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-28 03:22:54 +08:00
retries cannot be None, because a default was set
This commit is contained in:
parent
76d7235f08
commit
c4cb885a44
@ -579,7 +579,7 @@ class FileDownloader(object):
|
||||
resume_len = 0
|
||||
|
||||
count = 0
|
||||
retries = self.params.get('retries', 0)
|
||||
retries = self.params['retries']
|
||||
while count <= retries:
|
||||
# Establish connection
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user