Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ get_exception
Function
get_exception
tests/test_traceback.py:76–90 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
74
75
76
def
get_exception() -> Traceback:
77
def
bar(a):
78
print(1 / a)
79
80
def
foo(a):
81
bar(a)
82
83
try
:
84
try
:
85
foo(0)
86
except
:
87
foobarbaz
88
except
:
89
tb = Traceback()
90
return
tb
91
92
93
def
test_print_exception():
Callers
nothing calls this directly
Calls
2
Traceback
Class · 0.90
foo
Function · 0.70
Tested by
no test coverage detected