diff --git a/src/dodb/partition.cr b/src/dodb/partition.cr index 3735e7d..b1ffeeb 100644 --- a/src/dodb/partition.cr +++ b/src/dodb/partition.cr @@ -55,7 +55,7 @@ class DODB::Partition(V) < DODB::Indexer(V) def get?(partition) : Array(V)? get partition - rescue MissingEntry + rescue KeyError nil end diff --git a/src/dodb/tags.cr b/src/dodb/tags.cr index 7957997..02cab83 100644 --- a/src/dodb/tags.cr +++ b/src/dodb/tags.cr @@ -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