aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-02-16 17:04:25 +0530
committerpukkandan <pukkandan@gmail.com>2021-02-16 17:04:53 +0530
commit6b027907cec018c3e48d8aa0f8cecc8716bf3226 (patch)
treeab23c29cfcdec6dda6a0ef6307daf7c68d946a62
parentf3b7c69377d76e17c5f8610f661140813204f658 (diff)
downloadhypervideo-pre-6b027907cec018c3e48d8aa0f8cecc8716bf3226.tar.lz
hypervideo-pre-6b027907cec018c3e48d8aa0f8cecc8716bf3226.tar.xz
hypervideo-pre-6b027907cec018c3e48d8aa0f8cecc8716bf3226.zip
Don't raise parser.error when exiting for update
-rw-r--r--youtube_dlc/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dlc/__init__.py b/youtube_dlc/__init__.py
index bde9b33d4..a14c8424e 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