MissingEntry -> KeyError

master
Philippe PITTOLI 2024-05-06 20:32:27 +02:00
parent 0dc384dd79
commit 8a585a2679
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ class DODB::Partition(V) < DODB::Indexer(V)
def get?(partition) : Array(V)?
get partition
rescue MissingEntry
rescue KeyError
nil
end

View File

@ -66,7 +66,7 @@ class DODB::Tags(V) < DODB::Indexer(V)
def get?(tag : String) : Array(V)?
get tag
rescue MissingEntry
rescue KeyError
nil
end