Skip to content

Commit

Permalink
Remove erroneous del line (#2899)
Browse files Browse the repository at this point in the history
This line tries to delete a list element that has never been added,
so it raises an error when reached.

Fixes #2889

Co-authored-by: Adam Hopkins <[email protected]>
  • Loading branch information
Huy-Ngo and ahopkins authored Apr 1, 2024
1 parent 12e61db commit 8b498fa
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sanic/cli/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def __init__(self, app: Sanic, start: Optional[Default] = None):
f" - {Colors.BOLD + Colors.SANIC}client{Colors.END}: A client to access the Sanic app instance using httpx - {Colors.BOLD + Colors.BLUE}from httpx import Client{Colors.END}", # noqa: E501
)
else:
del variable_descriptions[3]
client_availability = (
f"\n{Colors.YELLOW}The HTTP client has been disabled. "
"To enable it, install httpx:\n\t"
Expand Down

0 comments on commit 8b498fa

Please sign in to comment.