From b590cb9e0fd76ad1239b7172ec4d73602c6b88de Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Tue, 7 May 2024 00:01:31 +0200 Subject: [PATCH] Only catches "File Not Found" error while deleting a value in dodb.cr. --- src/dodb.cr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dodb.cr b/src/dodb.cr index d80bc5d..82dc5b8 100644 --- a/src/dodb.cr +++ b/src/dodb.cr @@ -336,8 +336,7 @@ class DODB::DataBase(V) < DODB::Storage(V) begin ::File.delete file_path key - rescue - # FIXME: Only intercept “no such file" errors + rescue File::NotFoundError end remove_indexes key, value