Fix crash when HN feed fails

master
Tanner Collin 4 years ago
parent 9c116bde4a
commit 0bd9f05250
  1. 2
      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:

Loading…
Cancel
Save