mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-28 03:33:22 +08: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
@ -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…
Reference in New Issue
Block a user