bugfix: remove import click and supress typer errors only
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
from subprocess import CalledProcessError, SubprocessError
|
from subprocess import CalledProcessError, SubprocessError
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
|
|
||||||
import click
|
|
||||||
import typer
|
import typer
|
||||||
from rich.markup import escape
|
from rich.markup import escape
|
||||||
from rich.traceback import Traceback
|
from rich.traceback import Traceback
|
||||||
@@ -70,7 +69,7 @@ def _print_error(message: str, title: str, e: BaseException):
|
|||||||
base.io_error(message, title=title)
|
base.io_error(message, title=title)
|
||||||
console.print(
|
console.print(
|
||||||
Traceback.from_exception(
|
Traceback.from_exception(
|
||||||
type(e), e, e.__traceback__, suppress=[click, typer]
|
type(e), e, e.__traceback__, suppress=[typer]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user