Skip to content

Commit cf19433

Browse files
committed
Replace rich.prompt.Exit with typer's Exit
1 parent 0362251 commit cf19433

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hostedpi/cli/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from typing import Literal, Union
44

55
import rich
6+
from typer import Exit
67
from pydantic import ValidationError
78
from rich.console import Console
89
from rich.live import Live
@@ -47,7 +48,7 @@ def get_pi_or_exit(name: str) -> Pi:
4748
pi = get_pi(name)
4849
if pi is None:
4950
print_error("No server found with the given name.")
50-
raise rich.prompt.Exit()
51+
raise Exit()
5152
return pi
5253

5354

0 commit comments

Comments
 (0)