hgext/convert/subversion.py
changeset 52640 24ee91ba9aa8
parent 52639 9db77d46de79
child 52643 5cc8deb96b48
--- a/hgext/convert/subversion.py	Mon Jan 06 14:15:40 2025 -0500
+++ b/hgext/convert/subversion.py	Sun Jan 05 21:03:17 2025 -0500
@@ -224,7 +224,7 @@
             strict_node_history,
             receiver,
         )
-    except IOError:
+    except OSError:
         # Caller may interrupt the iteration
         pickle.dump(None, fp, protocol)
     except Exception as inst:
@@ -1366,7 +1366,7 @@
         stdin.write(arg)
         try:
             stdin.close()
-        except IOError:
+        except OSError:
             raise error.Abort(
                 _(
                     b'Mercurial failed to run itself, check'