Fix crash when HN feed fails

This commit is contained in:
Tanner
2020-07-07 20:53:46 +00:00
parent 02c8bbad20
commit 162142083b
+1 -1
View File
@@ -30,7 +30,7 @@ def api(route, ref=None):
return False return False
def feed(): 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): def comment(i):
if 'author' not in i: if 'author' not in i: