aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-11-18 00:46:20 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-11-18 00:46:20 +0100
commit47207db729eadde27b53b74236da85cb4d3fb052 (patch)
tree82c0a823df99f61193ef132b12b1877dcef4b199
parent2ad6ea7f9d2b77ca766caaf9500ad06381177694 (diff)
downloadfuzzycat-47207db729eadde27b53b74236da85cb4d3fb052.tar.gz
fuzzycat-47207db729eadde27b53b74236da85cb4d3fb052.zip
verify: fix a None
-rw-r--r--fuzzycat/verify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzzycat/verify.py b/fuzzycat/verify.py
index 9a89f4f..58fa0b8 100644
--- a/fuzzycat/verify.py
+++ b/fuzzycat/verify.py
@@ -142,8 +142,8 @@ class GroupVerifier:
continue
for a, b in itertools.combinations(vs, r=2):
for re in (a, b):
- if re.get("extra", {}).get("container_name",
- "").lower().strip() in CONTAINER_NAME_BLACKLIST:
+ container_name = re.get("extra", {}).get("container_name", "") or ""
+ if container_name.lower().strip() in CONTAINER_NAME_BLACKLIST:
self.counter["skip.container_name_blacklist"] += 1
continue
if re.get("publisher", "").lower().strip() in PUBLISHER_BLACKLIST: