Skip to content

Commit

Permalink
fixed broken test
Browse files Browse the repository at this point in the history
Signed-off-by: ahmedsobeh <[email protected]>
  • Loading branch information
ahmedsobeh committed Jun 29, 2024
1 parent 89ad234 commit d146eb6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions valkey/_parsers/url_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ def to_bool(value) -> Optional[bool]:

def parse_url(url: str, async_connection: bool):

if not (
url.startswith("valkey://")
or url.startswith("valkeys://")
or url.startswith("unix://")
):
raise ValueError(
"Valkey URL must specify one of the following "
"schemes (valkey://, valkeys://, unix://)"
)

parsed: ParseResult = urlparse(url)
kwargs: ConnectKwargs = {}

Expand Down

0 comments on commit d146eb6

Please sign in to comment.