1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-23 08:17:00 +00:00

Don't raise parser.error when exiting for update

This commit is contained in:
pukkandan 2021-02-16 17:04:25 +05:30
parent f3b7c69377
commit 6b027907ce

View file

@ -560,7 +560,7 @@ def _real_main(argv=None):
# If updater returns True, exit. Required for windows
if update_self(ydl.to_screen, opts.verbose, ydl._opener):
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()
# Maybe do nothing