aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-11-10 21:58:20 -0800
committerBryan Newbold <bnewbold@archive.org>2020-11-10 21:58:20 -0800
commitd299104f3485c7e99738b521a78adc7e5452f995 (patch)
tree8d505cb785320d2fe121612b9da4a89d602f7247
parentb70a5a18d3091fd61c41391a937e9fef1b27cf9c (diff)
downloadfuzzycat-d299104f3485c7e99738b521a78adc7e5452f995.tar.gz
fuzzycat-d299104f3485c7e99738b521a78adc7e5452f995.zip
cluster: count empty keys (and don't return them)
-rw-r--r--fuzzycat/cluster.py3
1 files changed, 3 insertions, 0 deletions
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