Barbarian1010 / pychess

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

KeyError on FICS playing myself #676

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Login to FICS as myself
2. From another PyChess login as guest
3. Challenge myself, and try to accept the challenge in the first PyChess

Used hg tip, and got this exception:

20:56:53 stdout Debug:   File "/home/tamas/pychess/pychess", line 76, in 
<module>
    import pychess.Main
  File "/home/tamas/pychess/lib/pychess/Main.py", line 15, in <module>
    from pychess.widgets import newGameDialog
  File "/home/tamas/pychess/lib/pychess/widgets/newGameDialog.py", line 33, in <module>
    from pychess.widgets import ionest
  File "/home/tamas/pychess/lib/pychess/widgets/ionest.py", line 21, in <module>
    from pychess.widgets import gamewidget
  File "/home/tamas/pychess/lib/pychess/widgets/gamewidget.py", line 16, in <module>
    from BoardControl import BoardControl
  File "/home/tamas/pychess/lib/pychess/widgets/BoardControl.py", line 15, in <module>
    from PromotionDialog import PromotionDialog
  File "/home/tamas/pychess/lib/pychess/widgets/PromotionDialog.py", line 12, in <module>
    uistuff.cacheGladefile("promotion.glade")
  File "/home/tamas/pychess/lib/pychess/System/uistuff.py", line 443, in cacheGladefile
    pool.start(readit)
  File "/home/tamas/pychess/lib/pychess/ic/FICSConnection.py", line 216, in run
    self.client.handleSomeText(self.predictions)
  File "/home/tamas/pychess/lib/pychess/ic/VerboseTelnet.py", line 157, in handleSomeText
    answer = self.__state.handle(line)
  File "/home/tamas/pychess/lib/pychess/ic/VerboseTelnet.py", line 69, in handle
    self.callback(self.matchlist)
  File "/home/tamas/pychess/lib/pychess/ic/managers/BoardManager.py", line 357, in onPlayGameCreated
    if player.ratings[game_type.rating_type].elo != rating:
20:56:53 stdout Debug: <type 'exceptions.KeyError'> 9

Original issue reported on code.google.com by gbtami on 23 Jun 2011 at 7:04

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks Tamás. Fixed in revision f1d8405bcb3b.

Original comment by mattgatto on 24 Jun 2011 at 1:11