--- a/hgext/fsmonitor/state.py Mon Jan 06 14:15:40 2025 -0500
+++ b/hgext/fsmonitor/state.py Sun Jan 05 21:03:17 2025 -0500
@@ -40,7 +40,7 @@
def get(self):
try:
file = self._vfs(b'fsmonitor.state', b'rb')
- except IOError as inst:
+ except OSError as inst:
self._identity = util.filestat(None)
if inst.errno != errno.ENOENT:
raise
@@ -122,7 +122,7 @@
file = self._vfs(
b'fsmonitor.state', b'wb', atomictemp=True, checkambig=True
)
- except (IOError, OSError):
+ except OSError:
self._ui.warn(_(b"warning: unable to write out fsmonitor state\n"))
return