mercurial/sshpeer.py
changeset 52640 24ee91ba9aa8
parent 52521 b52f2b365eff
child 52988 5ec596c91086
--- a/mercurial/sshpeer.py	Mon Jan 06 14:15:40 2025 -0500
+++ b/mercurial/sshpeer.py	Sun Jan 05 21:03:17 2025 -0500
@@ -169,7 +169,7 @@
         try:
             for l in pipee:
                 ui.status(_(b'remote: '), l)
-        except (IOError, ValueError):
+        except (OSError, ValueError):
             pass
 
         pipee.close()
@@ -316,7 +316,7 @@
 
         stdin.write(b''.join(handshake))
         stdin.flush()
-    except IOError:
+    except OSError:
         badresponse()
 
     # Assume version 1 of wire protocol by default.
@@ -350,7 +350,7 @@
                 ui.debug(b'remote: ', l)
             lines.append(l)
             max_noise -= 1
-        except IOError:
+        except OSError:
             badresponse()
     else:
         badresponse()
@@ -709,7 +709,7 @@
             peer._call(
                 b"protocaps", caps=b' '.join(sorted(_clientcapabilities()))
             )
-        except IOError:
+        except OSError:
             peer._cleanup()
             raise error.RepoError(_(b'capability exchange failed'))