From c4a07a9e5299b9b541f228b5ed997fc1cadd96f3 Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Fri, 28 Feb 2020 01:15:02 +0000 Subject: [PATCH] Home timeline can't have Nones in it --- kepi/trilby_api/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kepi/trilby_api/views.py b/kepi/trilby_api/views.py index a529a13..84555ef 100644 --- a/kepi/trilby_api/views.py +++ b/kepi/trilby_api/views.py @@ -354,7 +354,10 @@ class HomeTimeline(AbstractTimeline): if item.f_type in [ 'Create', ]: - result.append(item['object__obj']) + product = item['object__obj'] + + if product is not None: + result.append(product) return result