]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove redundant `sys.exit(2)` call in `pdb` CLI (#139948)
authorFrost Ming <me@frostming.com>
Mon, 3 Nov 2025 02:47:18 +0000 (10:47 +0800)
committerGitHub <noreply@github.com>
Mon, 3 Nov 2025 02:47:18 +0000 (18:47 -0800)
Lib/pdb.py

index 4ee12d17a611e6f37d97f3042b931a0eef7fdd04..fdc74198582eecdce5de784b998910add6add512 100644 (file)
@@ -3603,7 +3603,6 @@ def main():
         invalid_args = list(itertools.takewhile(lambda a: a.startswith('-'), args))
         if invalid_args:
             parser.error(f"unrecognized arguments: {' '.join(invalid_args)}")
-            sys.exit(2)
 
     if opts.module:
         file = opts.module