diff --git a/lightning-persister/src/fs_store.rs b/lightning-persister/src/fs_store.rs index 850a0786671..6be07200f39 100644 --- a/lightning-persister/src/fs_store.rs +++ b/lightning-persister/src/fs_store.rs @@ -316,7 +316,9 @@ impl KVStore for FilesystemStore { let entry = entry?; let p = entry.path(); - if !dir_entry_is_key(&p)? { + // We skip any entries that do not adhere to our key requirements, or for which we get + // an error. + if !dir_entry_is_key(&p).unwrap_or(false) { continue; }