mercurial/manifest.py
changeset 52640 24ee91ba9aa8
parent 52495 6412dcec52d3
child 52643 5cc8deb96b48
--- a/mercurial/manifest.py	Mon Jan 06 14:15:40 2025 -0500
+++ b/mercurial/manifest.py	Sun Jan 05 21:03:17 2025 -0500
@@ -1582,7 +1582,7 @@
                     if len(value) != size:
                         break
                     set(node, value)
-        except IOError:
+        except OSError:
             # the file is allowed to be missing
             pass
 
@@ -1606,7 +1606,7 @@
                     if node is self._head:
                         break
                     node = node.prev
-        except IOError:
+        except OSError:
             # We could not write the cache (eg: permission error)
             # the content can be missing.
             #