MissingEntry -> KeyError
This commit is contained in:
parent
0dc384dd79
commit
8a585a2679
@ -55,7 +55,7 @@ class DODB::Partition(V) < DODB::Indexer(V)
|
||||
|
||||
def get?(partition) : Array(V)?
|
||||
get partition
|
||||
rescue MissingEntry
|
||||
rescue KeyError
|
||||
nil
|
||||
end
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user