From d299104f3485c7e99738b521a78adc7e5452f995 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 10 Nov 2020 21:58:20 -0800 Subject: cluster: count empty keys (and don't return them) --- fuzzycat/cluster.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fuzzycat/cluster.py b/fuzzycat/cluster.py index dde0688..9a8d5db 100644 --- a/fuzzycat/cluster.py +++ b/fuzzycat/cluster.py @@ -272,6 +272,9 @@ class Cluster: except (KeyError, ValueError): counter["key_extraction_failed"] += 1 continue + if not key: + counter["key_empty"] += 1 + continue if self.key_denylist and key in self.key_denylist: counter["key_denylist"] += 1 continue -- cgit v1.2.3