Skip to content

Commit

Permalink
[py]: Raise a more generic ValueError when proxy type is not accept…
Browse files Browse the repository at this point in the history
…ible
  • Loading branch information
symonk committed Jul 24, 2023
1 parent 0a17d01 commit 13e5f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/common/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def proxy_type(self, value) -> None:

def _verify_proxy_type_compatibility(self, compatible_proxy):
if self.proxyType not in (ProxyType.UNSPECIFIED, compatible_proxy):
raise Exception(
raise ValueError(
f"Specified proxy type ({compatible_proxy}) not compatible with current setting ({self.proxyType})"
)

Expand Down

0 comments on commit 13e5f88

Please sign in to comment.