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 5c0dcb3 commit f06681eCopy full SHA for f06681e
Lib/webbrowser.py
@@ -167,7 +167,7 @@ def open_new_tab(self, url):
167
def _check_url(url):
168
"""Ensures that the URL is safe to pass to subprocesses as a parameter"""
169
if url and url.lstrip().startswith("-"):
170
- raise ValueError(f"Invalid URL: {url}")
+ raise ValueError(f"Invalid URL (leading dash disallowed): {url!r}")
171
172
173
class GenericBrowser(BaseBrowser):
0 commit comments