mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
Gracefully handle the rising key expiring away.
This commit is contained in:
committed by
bsimpson63
parent
37f005b30e
commit
7a68f2a63e
@@ -65,5 +65,5 @@ def set_rising():
|
||||
|
||||
|
||||
def get_rising(sr):
|
||||
rising = g.cache.get(CACHE_KEY)
|
||||
rising = g.cache.get(CACHE_KEY, [])
|
||||
return [link for link, sr_id in rising if sr.keep_for_rising(sr_id)]
|
||||
|
||||
Reference in New Issue
Block a user