Only catches "File Not Found" error while deleting a value in dodb.cr.

This commit is contained in:
Philippe PITTOLI 2024-05-07 00:01:31 +02:00
parent 8dfbe28986
commit b590cb9e0f

View File

@ -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