-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add global exception handler to nitropy command
This patch introduces a wrapper around the nitropy command, pynitrokey.cli.main, that catches unhandled exceptions and uses local_critical to display them to the user. For more consistency, we also move the CliException handling to that wrapper. Note that this changes the main entry point from pynitrokey.cli.nitropy to pynitrokey.cli.main, so developers have to run `make update-venv` to apply this change. Fixes #193
- Loading branch information
1 parent
74c5280
commit fe24170
Showing
4 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters