Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-113299: Move Argument Clinic CLI into libclinic #115542

Closed
wants to merge 12 commits into from
Prev Previous commit
Next Next commit
Import ClinicError directly from libclinic
erlend-aasland committed Feb 15, 2024

Verified

This commit was signed with the committer’s verified signature.
erlend-aasland Erlend E. Aasland
commit ac08f0fb9bee689ac174ed22e87dbd3d0f58a981
4 changes: 2 additions & 2 deletions Tools/clinic/libclinic/cli.py
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
import sys
from typing import NoReturn

from libclinic import clinic
from libclinic import clinic, ClinicError

__all__ = ["main"]

@@ -181,7 +181,7 @@ def main(argv: list[str] | None = None) -> NoReturn:
args = parser.parse_args(argv)
try:
run_clinic(parser, args)
except clinic.ClinicError as exc:
except ClinicError as exc:
sys.stderr.write(exc.report())
sys.exit(1)
else: