We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d498b7e commit 1155efbCopy full SHA for 1155efb
Lib/webbrowser.py
@@ -162,7 +162,7 @@ def open_new_tab(self, url):
162
def _check_url(url):
163
"""Ensures that the URL is safe to pass to subprocesses as a parameter"""
164
if url and url.lstrip().startswith("-"):
165
- raise ValueError(f"Invalid URL {url!r}: URLs must not start with '-' after leading whitespace")
+ raise ValueError(f"Invalid URL: {url}")
166
167
168
class GenericBrowser(BaseBrowser):
0 commit comments