Screensave crash with empty list

Bug #1125538 reported by Wayne Moulden
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Wah!Cade
Fix Committed
Undecided
Wayne Moulden

Bug Description

Traceback (most recent call last):
  File "/home/waynemou/workspace/wahcade/win_scrsaver.py", line 200, in on_slide_timer
    self.game_idx = self.WinMain.get_random_game_idx()
  File "/home/waynemou/workspace/wahcade/win_main.py", line 1686, in get_random_game_idx
    return random.randint(0, self.lsGames_len - 1)
  File "/usr/lib/python2.7/random.py", line 241, in randint
    return self.randrange(a, b+1)
  File "/usr/lib/python2.7/random.py", line 217, in randrange
    raise ValueError, "empty range for randrange() (%d,%d, %d)" % (istart, istop, width)
ValueError: empty range for randrange() (0,0, 0)

Crashed when screensaver tried to execute over empty list

Related branches

Wayne Moulden (waynemou)
Changed in wahcade:
assignee: nobody → Wayne Moulden (waynemou)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.