Skip to content

Commit b333681

Browse files
committed
replace click.style in PipfileNotFound
1 parent 25f1924 commit b333681

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pipenv/exceptions.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,8 @@ class PipfileNotFound(PipenvFileError):
163163
def __init__(self, filename="Pipfile", extra=None, **kwargs):
164164
extra = kwargs.pop("extra", [])
165165
message = "{} {}".format(
166-
click.style("Aborting!", bold=True, fg="red"),
167-
click.style(
168-
"Please ensure that the file exists and is located in your"
169-
" project root directory.",
170-
bold=True,
171-
),
166+
"[bold red]Aborting![/bold red]",
167+
"[bold]Please ensure that the file exists and is located in your project root directory.[/bold]",
172168
)
173169
super().__init__(filename, message=message, extra=extra, **kwargs)
174170

0 commit comments

Comments
 (0)