hgext/remotefilelog/shallowutil.py
changeset 52640 24ee91ba9aa8
parent 52571 94fa2543d710
child 52648 abc327f9628b
--- a/hgext/remotefilelog/shallowutil.py	Mon Jan 06 14:15:40 2025 -0500
+++ b/hgext/remotefilelog/shallowutil.py	Sun Jan 05 21:03:17 2025 -0500
@@ -326,7 +326,7 @@
     # we should never have empty files
     if not result:
         os.remove(path)
-        raise IOError(b"empty file: %s" % path)
+        raise OSError(b"empty file: %s" % path)
 
     return result
 
@@ -474,7 +474,7 @@
     try:
         os.chown(path, -1, gid)
         os.chmod(path, 0o2775)
-    except (IOError, OSError) as ex:
+    except OSError as ex:
         if warn:
             warn(_(b'unable to chown/chmod on %s: %s\n') % (path, ex))