Skip to content

A feature-rich command-line audio/video downloader

Don't raise parser.error when exiting for update

pukkandan6b027907cec0
diff --git a/youtube_dlc/__init__.py b/youtube_dlc/__init__.py
index bde9b33d41..a14c8424ef 100644
--- a/youtube_dlc/__init__.py
+++ b/youtube_dlc/__init__.py
@@ -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