Skip to content

Commit

Permalink
better debugging for #1779
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 21, 2024
1 parent 581ceba commit 8e54790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bbot/core/helpers/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ def split_host_port(d):

match = bbot_regexes.extract_open_port_regex.match(netloc)
if match is None:
raise ValueError(f'split_port() failed to parse netloc "{netloc}"')
raise ValueError(f'split_port() failed to parse netloc "{netloc}" (original value: {d})')

host = match.group(2)
if host is None:
host = match.group(1)
if host is None:
raise ValueError(f'split_port() failed to locate host in netloc "{netloc}"')
raise ValueError(f'split_port() failed to locate host in netloc "{netloc}" (original value: {d})')

port = match.group(3)
if port is None and scheme is not None:
Expand Down

0 comments on commit 8e54790

Please sign in to comment.