Fix crash when HN feed fails
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user