--- a/mercurial/url.py Mon Jan 06 14:15:40 2025 -0500
+++ b/mercurial/url.py Sun Jan 05 21:03:17 2025 -0500
@@ -297,7 +297,7 @@
list(iter(res.fp.readline, b'\r\n'))
else:
self.close()
- raise socket.error(
+ raise OSError(
"Tunnel connection failed: %d %s" % (status, reason.strip())
)