Skip to content

Commit 25f1924

Browse files
committed
replace click.style in PipenvFileError
1 parent b7dbd47 commit 25f1924

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pipenv/exceptions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ def show(self, file=None):
137137

138138

139139
class PipenvFileError(FileError):
140-
formatted_message = "{} {{}} {{}}".format(click.style("ERROR:", fg="red", bold=True))
140+
formatted_message = "{} {{}} {{}}".format("[bold red]ERROR:[/bold red]")
141141

142142
def __init__(self, filename, message=None, **kwargs):
143143
extra = kwargs.pop("extra", [])
144144
if not message:
145-
message = click.style("Please ensure that the file exists!", bold=True)
145+
message = "[bold]Please ensure that the file exists![/bold]"
146146
message = self.formatted_message.format(
147-
click.style(f"{filename} not found!", bold=True), message
147+
f"[bold]{filename} not found![/bold]", message
148148
)
149149
FileError.__init__(self, filename=filename, hint=message, **kwargs)
150150
self.extra = extra

0 commit comments

Comments
 (0)