--- 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: