mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 12:01:28 +00:00
Don't raise parser.error when exiting for update
This commit is contained in:
parent
f3b7c69377
commit
6b027907ce
|
@ -560,7 +560,7 @@ def report_args_compat(arg, name):
|
||||||
# If updater returns True, exit. Required for windows
|
# If updater returns True, exit. Required for windows
|
||||||
if update_self(ydl.to_screen, opts.verbose, ydl._opener):
|
if update_self(ydl.to_screen, opts.verbose, ydl._opener):
|
||||||
if actual_use:
|
if actual_use:
|
||||||
parser.error('The program must exit for the update to complete')
|
sys.exit('ERROR: The program must exit for the update to complete')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
# Maybe do nothing
|
# Maybe do nothing
|
||||||
|
|
Loading…
Reference in a new issue