mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 14:24:03 -07:00
retries cannot be None, because a default was set
This commit is contained in:
parent
76d7235f08
commit
c4cb885a44
1 changed files with 1 additions and 1 deletions
|
@ -579,7 +579,7 @@ class FileDownloader(object):
|
||||||
resume_len = 0
|
resume_len = 0
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
retries = self.params.get('retries', 0)
|
retries = self.params['retries']
|
||||||
while count <= retries:
|
while count <= retries:
|
||||||
# Establish connection
|
# Establish connection
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue