mercurial/url.py
changeset 52640 24ee91ba9aa8
parent 51988 71658f79758a
child 52645 4cb75772818d
--- 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())
             )