diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-11-10 21:58:20 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-11-10 21:58:20 -0800 |
commit | d299104f3485c7e99738b521a78adc7e5452f995 (patch) | |
tree | 8d505cb785320d2fe121612b9da4a89d602f7247 | |
parent | b70a5a18d3091fd61c41391a937e9fef1b27cf9c (diff) | |
download | fuzzycat-d299104f3485c7e99738b521a78adc7e5452f995.tar.gz fuzzycat-d299104f3485c7e99738b521a78adc7e5452f995.zip |
cluster: count empty keys (and don't return them)
-rw-r--r-- | fuzzycat/cluster.py | 3 |
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 |