hgext/convert/cvsps.py
changeset 52640 24ee91ba9aa8
parent 52636 0e11e532c958
--- a/hgext/convert/cvsps.py	Mon Jan 06 14:15:40 2025 -0500
+++ b/hgext/convert/cvsps.py	Sun Jan 05 21:03:17 2025 -0500
@@ -154,7 +154,7 @@
             directory = prefix
             if prefix == b".":
                 prefix = b""
-        except IOError:
+        except OSError:
             raise logerror(_(b'not a CVS sandbox'))
 
         if prefix and not prefix.endswith(pycompat.ossep):
@@ -163,7 +163,7 @@
         # Use the Root file in the sandbox, if it exists
         try:
             root = util.readfile(os.path.join(b'CVS', b'Root')).strip()
-        except IOError:
+        except OSError:
             pass
 
     if not root: