From 121c219e302365e63eef0aef81b94a3de7a37fec Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Mon, 3 Nov 2025 10:47:18 +0800 Subject: [PATCH] Remove redundant `sys.exit(2)` call in `pdb` CLI (#139948) --- Lib/pdb.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Lib/pdb.py b/Lib/pdb.py index 4ee12d17a611..fdc74198582e 100644 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -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 -- 2.47.3