hgext/remotefilelog/basestore.py
changeset 52640 24ee91ba9aa8
parent 52383 51df2bf7c40b
--- a/hgext/remotefilelog/basestore.py	Mon Jan 06 14:15:40 2025 -0500
+++ b/hgext/remotefilelog/basestore.py	Sun Jan 05 21:03:17 2025 -0500
@@ -227,7 +227,7 @@
                         f.write(b"corrupt %s during read\n" % filepath)
                 os.rename(filepath, filepath + b".corrupt")
                 raise KeyError(b"corrupt local cache file %s" % filepath)
-        except IOError:
+        except OSError:
             raise KeyError(
                 b"no file found at %s for %s:%s" % (filepath, name, hex(node))
             )