From 3d384b8e3e930023b216301eb1b88bc3aa6ed155 Mon Sep 17 00:00:00 2001 From: Andy Date: Sun, 23 Nov 2025 08:06:43 +0000 Subject: [PATCH] fix(windscribevpn): add error handling for unsupported regions in get_proxy method --- unshackle/core/proxies/windscribevpn.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/unshackle/core/proxies/windscribevpn.py b/unshackle/core/proxies/windscribevpn.py index de4458e..e547e8f 100644 --- a/unshackle/core/proxies/windscribevpn.py +++ b/unshackle/core/proxies/windscribevpn.py @@ -44,9 +44,17 @@ class WindscribeVPN(Proxy): def get_proxy(self, query: str) -> Optional[str]: """ Get an HTTPS proxy URI for a WindscribeVPN server. + + Note: Windscribe's static OpenVPN credentials only work on US servers. """ query = query.lower() + if query != "us" and query not in self.server_map: + raise ValueError( + f"Windscribe proxy does not currently support the '{query.upper()}' region. " + "Only US servers are supported with static OpenVPN credentials. " + ) + if query in self.server_map: hostname = self.server_map[query] else: