From acdd63b433e2b858fdeb9b74e33af9d500422ba0 Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Fri, 5 May 2023 17:02:50 -0700 Subject: [PATCH] Add rich Exception handling to REPL --- .config/pythonrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/pythonrc b/.config/pythonrc index 1472769..c610b88 100644 --- a/.config/pythonrc +++ b/.config/pythonrc @@ -8,10 +8,11 @@ else: # Try to install rich's prettification stuff try: - from rich import pretty + import rich.pretty + import rich.traceback from rich import print except ImportError: print("Failed to import Rich for CLI prettification") else: - pretty.install() - + rich.pretty.install() + rich.traceback.install()