Add an Option argument, to mask its value in case of exceptions #1164
Unanswered
HansAarneLiblik
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I have a Typer script, that does... well a lot 😆 .
In some cases, it handles secrets (passwords, tokens, etc.), and when errors happen in those codepaths, I'd like to hide ONLY those values and not other arguments, as they provide helpful information regarding debugging.
Perhaps
Option
could have a new argumentpretty_exceptions_show
to disable ONLY this option from being prettified to logs when exceptions happen? (Similar toTyper
havingpretty_exceptions_show_locals
)Operating System
macOS
Operating System Details
No response
Typer Version
0.15.1
Python Version
3.13.2
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions