Skip to content

Commit 13e5f88

Browse files
committed
[py]: Raise a more generic ValueError when proxy type is not acceptible
1 parent 0a17d01 commit 13e5f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/common/proxy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def proxy_type(self, value) -> None:
283283

284284
def _verify_proxy_type_compatibility(self, compatible_proxy):
285285
if self.proxyType not in (ProxyType.UNSPECIFIED, compatible_proxy):
286-
raise Exception(
286+
raise ValueError(
287287
f"Specified proxy type ({compatible_proxy}) not compatible with current setting ({self.proxyType})"
288288
)
289289

0 commit comments

Comments
 (0)