fix(cli): reduce traceback length by disabling Typer pretty exceptions - #704
Merged
Conversation
Release 0.4.56
Release 0.4.57
Release 0.4.58
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the adb Typer-based CLI to disable Typer’s Rich “pretty exceptions” so errors fall back to standard Python tracebacks, reducing excessively long stack traces and avoiding the Rich/IPython-related slowdown described in #467.
Changes:
- Disabled Typer pretty exceptions (
pretty_exceptions_enable=False) for the top-leveladbapp and all CLI sub-apps. - Kept existing exception-local settings (
pretty_exceptions_show_locals=False) while fully disabling pretty exception rendering.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| aperturedb/cli/utilities.py | Disable Typer pretty exceptions for the utils command group app. |
| aperturedb/cli/transact.py | Disable Typer pretty exceptions for the transact command group app. |
| aperturedb/cli/tokens.py | Disable Typer pretty exceptions for the tokens command group app. |
| aperturedb/cli/keys.py | Disable Typer pretty exceptions for the keys command group app. |
| aperturedb/cli/ingest.py | Disable Typer pretty exceptions for the ingest command group app. |
| aperturedb/cli/configure.py | Disable Typer pretty exceptions for the config command group app. |
| aperturedb/cli/adb.py | Disable Typer pretty exceptions for the top-level adb CLI app. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ad-claw000
commented
May 20, 2026
ad-claw000
left a comment
Contributor
Author
There was a problem hiding this comment.
Applied autopep8 formatting to the new log messages to fix the pre-commit CI failure.
ad-claw000
commented
May 20, 2026
ad-claw000
left a comment
Contributor
Author
There was a problem hiding this comment.
Fixed the pre-commit CI failure by applying autopep8 formatting to the new log messages. Ready for review!
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pretty_exceptions_enableon Typer apps across the CLI commands to revert to standard Python tracebacks.IPythoncausing slowdowns.Verification
adb config lscommand execution still behaves correctly.Fixes #467.