]> jfr.im git - yt-dlp.git/commitdiff
Don't raise parser.error when exiting for update
authorpukkandan <redacted>
Tue, 16 Feb 2021 11:34:25 +0000 (17:04 +0530)
committerpukkandan <redacted>
Tue, 16 Feb 2021 11:34:53 +0000 (17:04 +0530)
youtube_dlc/__init__.py

index bde9b33d4167fca99dbdf6944647c42a7dee358d..a14c8424ef0e27f89ffdd7c10c36923c569faca0 100644 (file)
@@ -560,7 +560,7 @@ def report_args_compat(arg, name):
             # If updater returns True, exit. Required for windows
             if update_self(ydl.to_screen, opts.verbose, ydl._opener):
                 if actual_use:
             # 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
                 sys.exit()
 
         # Maybe do nothing