Remove redundant sys.exit(2) call in pdb CLI (#139948)

This commit is contained in:
Frost Ming
2025-11-03 10:47:18 +08:00
committed by GitHub
parent 63e01d6bae
commit 121c219e30

View 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