fowode / pychess

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

crash in Board.py while playing on FICS #910

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I got this crash on FICS while apparently playing a game:

Traceback (most recent call last):
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/BoardControl.py", line 269, in button_release
    return self.currentState.release(event.x, event.y)
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/BoardControl.py", line 483, in release
    self.parent.emit_move_signal(self.view.selected, cord)
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/BoardControl.py", line 98, in emit_move_signal
    if promotion is None and board[cord0].sign == PAWN and cord1.y in (0, self.RANKS-1):
  File "/home/gatto/code/hg/pychess/lib/pychess/Utils/Board.py", line 338, in __getitem__
    return self.data[cord.y].get(cord.x)
AttributeError: 'NoneType' object has no attribute 'y'

Original issue reported on code.google.com by mattgatto on 29 Aug 2014 at 1:11

Attachments:

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

Original comment by gbtami on 12 Sep 2014 at 12:55