mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 06:14:05 -07:00
retries cannot be None, because a default was set
retries cannot be None, because a default of 10 was set in add_option
This commit is contained in:
parent
b7a34316d2
commit
76d7235f08
1 changed files with 4 additions and 5 deletions
|
@ -441,11 +441,10 @@ def _real_main():
|
|||
if numeric_limit is None:
|
||||
parser.error(u'invalid rate limit specified')
|
||||
opts.ratelimit = numeric_limit
|
||||
if opts.retries is not None:
|
||||
try:
|
||||
opts.retries = long(opts.retries)
|
||||
except (TypeError, ValueError), err:
|
||||
parser.error(u'invalid retry count specified')
|
||||
try:
|
||||
opts.retries = long(opts.retries)
|
||||
except (TypeError, ValueError), err:
|
||||
parser.error(u'invalid retry count specified')
|
||||
try:
|
||||
opts.playliststart = int(opts.playliststart)
|
||||
if opts.playliststart <= 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue