Skip to content

Commit

Permalink
Don't get rising if sr_ids is None.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsimpson63 authored and spladug committed Apr 30, 2012
1 parent 611892a commit 097ccb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions r2/r2/lib/rising.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def set_rising():
def get_rising(sr):
#get the sr_ids
sr_ids = sr.rising_srs()
rising = cache.get('rising') or ()
if sr_ids:
rising = cache.get('rising', [])
return [p[0] for p in filter(lambda pair: pair[1] in sr_ids, rising)]
else:
return [p[0] for p in rising]
return []

0 comments on commit 097ccb6

Please sign in to comment.