From 47207db729eadde27b53b74236da85cb4d3fb052 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 18 Nov 2020 00:46:20 +0100 Subject: verify: fix a None --- fuzzycat/verify.py | 4 ++-- 1 file 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: -- cgit v1.2.3