colonelnugget / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
0 stars 0 forks source link

IndexError upon resigning FICS game #897

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was playing a FICS game and apparently had resigned (according to the log; I 
didn't notice until later) when I got this IndexError:

Traceback (most recent call last):
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/gamewidget.py", line 289, in shown_changed
    self.clock.update(wmovecount, bmovecount)
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/ChessClock.py", line 182, in update
    wt = formatTime (self.model.getPlayerTime(WHITE, wmovecount))
  File "/home/gatto/code/hg/pychess/lib/pychess/Utils/TimeModel.py", line 224, in getPlayerTime
    return self.intervals[color][movecount]
IndexError: list index out of range

It looks related to issue 876.

Original issue reported on code.google.com by mattgatto on 3 Jul 2014 at 2:55

GoogleCodeExporter commented 9 years ago

Original comment by mattgatto on 3 Jul 2014 at 2:55

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision b0a991d11e32.

Original comment by gbtami on 11 Jul 2014 at 9:46

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 384dae552604.

Original comment by gbtami on 12 Jul 2014 at 9:19