gh-126068: Fix exceptions in the argparse module (GH-126069)
* Only error messages for ArgumentError and ArgumentTypeError are now translated. * ArgumentError is now only used for command line errors, not for logical errors in the program. * TypeError is now raised instead of ValueError for some logical errors.
S
Serhiy Storchaka committed
cc9a1839930d30450b12c460eee58137e3a3d6f1
Parent: 1f16df4
Committed by GitHub <noreply@github.com>
on 10/30/2024, 4:14:27 PM