Fix crash when HN feed fails

This commit is contained in:
Tanner Collin 2020-07-07 20:53:46 +00:00
parent 9c116bde4a
commit 0bd9f05250

View File

@ -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: