hgext/remotefilelog/basepack.py
changeset 49306 2e726c934fcd
parent 49291 1bf3eb65e970
child 50929 18c8c18993f0
--- a/hgext/remotefilelog/basepack.py	Tue May 31 21:16:17 2022 +0200
+++ b/hgext/remotefilelog/basepack.py	Tue May 31 22:50:01 2022 +0200
@@ -166,9 +166,8 @@
                         )
                     else:
                         ids.add(id)
-        except OSError as ex:
-            if ex.errno != errno.ENOENT:
-                raise
+        except FileNotFoundError:
+            pass
 
     def _getavailablepackfilessorted(self):
         """Like `_getavailablepackfiles`, but also sorts the files by mtime,