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)?
|
def get?(partition) : Array(V)?
|
||||||
get partition
|
get partition
|
||||||
rescue MissingEntry
|
rescue KeyError
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ class DODB::Tags(V) < DODB::Indexer(V)
|
|||||||
|
|
||||||
def get?(tag : String) : Array(V)?
|
def get?(tag : String) : Array(V)?
|
||||||
get tag
|
get tag
|
||||||
rescue MissingEntry
|
rescue KeyError
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user