/
githubmirror
/
rich
Обзор
Документация
Войти
/
githubmirror
/
rich
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/recursive_error.py
25 строк
324 B
Will McGugan
tests
24 сен 2021, 11:41
24 сен 2021, 11:41
e96d889
Код
Авторство
О чём код?
""" Demonstrates Rich tracebacks for recursion errors. Rich can exclude frames in the middle to avoid huge tracebacks. """ from rich.console import Console def foo(n): return bar(n) def bar(n): return foo(n) console = Console() try: foo(1) except Exception: console.print_exception(max_frames=20)