diff --git a/bbot/core/helpers/misc.py b/bbot/core/helpers/misc.py index 13662792a..0c4e26ca9 100644 --- a/bbot/core/helpers/misc.py +++ b/bbot/core/helpers/misc.py @@ -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: