Skip to content

Wrap CLI in friendly Error Handler - SSL Update#107

Open
krowvin wants to merge 5 commits intomainfrom
101-handle-missing-system-certs-error
Open

Wrap CLI in friendly Error Handler - SSL Update#107
krowvin wants to merge 5 commits intomainfrom
101-handle-missing-system-certs-error

Conversation

@krowvin
Copy link
Collaborator

@krowvin krowvin commented Feb 3, 2026

This changes the root package to use main instead of the original cli function. Main then calls the CLI

This allows us to account for global error handling.

We can still pass the stack trace out but it also lets us create more user friendly error.

For example this initial PR handles the SSL error systems have when they target the T7 (local DoD system) that has it's own cert chain that does not ship with standard python and requires additional system certs.

Allows you to bypass the user friendly error with

CWMS_CLI_DEBUG env var

@krowvin krowvin requested a review from Enovotny February 3, 2026 19:25
@krowvin krowvin linked an issue Feb 3, 2026 that may be closed by this pull request
@krowvin krowvin force-pushed the 101-handle-missing-system-certs-error branch from ac1c268 to c89d4b5 Compare February 3, 2026 20:53
@krowvin krowvin removed the request for review from Enovotny February 3, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle Missing System Certs Error

1 participant