-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Hide frame from tracebacks #2207
Comments
Not sure I understand correctly, sorry... 😅 Do you mean something like this? @dataclass
class Frame:
filename: str
lineno: int
name: str
line: str = ""
locals: Optional[Dict[str, pretty.Node]] = None
_rich_traceback_omit: bool = False # <-- new opt-in allowing to exclude that frame ...which would be powered behind the scenes by something like the possibility to simply add |
Essentially that. The idea is that Textual can remove things like descriptors from the traceback, so the user doesn't see noise from the library code. We do something similar to omit library code (see |
Did I solve your problem? Why not buy the devs a coffee to say thanks? |
Sometimes it is useful to completely omit a frame from a traceback. Suggest a local variable with a name like
_rich_traceback_omit
The text was updated successfully, but these errors were encountered: