fowode / pychess

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

IndexError when observing FICS game #891

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was observing a FICS game and got this:

Traceback (most recent call last):
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/BoardControl.py", line 272, in motion_notify
    return self.currentState.motion(event.x, event.y)
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/BoardControl.py", line 394, in motion
    if cord and self.isSelectable(cord):
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/BoardControl.py", line 440, in isSelectable
    if self.getBoard()[cord] == None:
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/BoardControl.py", line 336, in getBoard
    return self.view.model.getBoardAtPly(self.view.shown, self.view.shownVariationIdx)
  File "/home/gatto/code/hg/pychess/lib/pychess/Utils/GameModel.py", line 322, in getBoardAtPly
    return self.variations[variation][self._plyToIndex(ply)]
IndexError: list index out of range

except statements without an exception name/type in them is a big python no-no.

Original issue reported on code.google.com by mattgatto on 20 Jun 2014 at 6:08

Attachments:

GoogleCodeExporter commented 9 years ago
Just got it again under the same circumstances.

Original comment by mattgatto on 5 Jul 2014 at 2:34

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mattgatto on 5 Jul 2014 at 2:59

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

Original comment by mattgatto on 5 Jul 2014 at 5:35