Skip to content

Commit 96109bc

Browse files
committed
[py] Fix ftp proxy warning
1 parent 699b0bf commit 96109bc

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

py/selenium/webdriver/common/proxy.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,11 @@ def __init__(self, raw=None):
259259
# TODO: Remove ftpProxy in future version and remove deprecation warning
260260
# https://github.com/SeleniumHQ/selenium/issues/15905
261261
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-
)
262+
warnings.warn(
263+
"ftpProxy is deprecated and will be removed in the future",
264+
DeprecationWarning,
265+
stacklevel=2,
266+
)
268267
self.ftp_proxy = raw["ftpProxy"]
269268
if "httpProxy" in raw and raw["httpProxy"]:
270269
self.http_proxy = raw["httpProxy"]

0 commit comments

Comments
 (0)