1from rich.traceback import install
2
3install(show_locals=True)
4
5from functools import wraps
6
7
8def wrap(func):
9 a = 0
10
11 @wraps(func)
12 def wrapper(*args, **kwargs):
13 return func()
14
15 return wrapper
16
17
18@wrap
19def test():
20 b = 1
21 raise Exception(b)
22
23
24test()