From df0138df4a66666c04bc02d1595e3a28460f5f14 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 1 Nov 2020 15:29:03 +0000 Subject: [PATCH] item.count can be None --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index dd2c4f2..f68611b 100755 --- a/app.py +++ b/app.py @@ -1072,6 +1072,8 @@ def depicts_lookup(): for alt in q2: item = alt.item + if item.count is None: + continue hit = { 'label': item.label, 'description': item.description,