Skip to content

Rich

References

Tracebacks

Source

Suppressing frames from entry points

Source

The suppress argument is a list[Module | str] where str arguments can be file paths as well.

sys.argv[0] is the current executing file.

As such, this suppresses errors caused in the entry point source file:

rich.traceback.install(suppress=[sys.argv[0]])