From 8a585a26792826ac5702173810d328c2231613a9 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Mon, 6 May 2024 20:32:27 +0200 Subject: [PATCH] MissingEntry -> KeyError --- src/dodb/partition.cr | 2 +- src/dodb/tags.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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