From 0bd9f0525064d67f5cf4e6c61e548b5c3d10612c Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 7 Jul 2020 20:53:46 +0000 Subject: [PATCH] Fix crash when HN feed fails --- apiserver/feeds/hackernews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/feeds/hackernews.py b/apiserver/feeds/hackernews.py index 8d6fe5b..4f400b7 100644 --- a/apiserver/feeds/hackernews.py +++ b/apiserver/feeds/hackernews.py @@ -30,7 +30,7 @@ def api(route, ref=None): return False def feed(): - return [str(x) for x in api(API_TOPSTORIES)] or [] + return [str(x) for x in api(API_TOPSTORIES) or []] def comment(i): if 'author' not in i: