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 699b0bf commit 96109bcCopy full SHA for 96109bc
py/selenium/webdriver/common/proxy.py
@@ -259,12 +259,11 @@ def __init__(self, raw=None):
259
# TODO: Remove ftpProxy in future version and remove deprecation warning
260
# https://github.com/SeleniumHQ/selenium/issues/15905
261
if "ftpProxy" in raw and raw["ftpProxy"]:
262
- if self.name == "ftpProxy":
263
- warnings.warn(
264
- "ftpProxy is deprecated and will be removed in the future",
265
- DeprecationWarning,
266
- stacklevel=2,
267
- )
+ warnings.warn(
+ "ftpProxy is deprecated and will be removed in the future",
+ DeprecationWarning,
+ stacklevel=2,
+ )
268
self.ftp_proxy = raw["ftpProxy"]
269
if "httpProxy" in raw and raw["httpProxy"]:
270
self.http_proxy = raw["httpProxy"]
0 commit comments