Werewolf state-tracking error

Bug #599026 reported by Stefano Rivera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ibid
Triaged
Low
Unassigned

Bug Description

2010-06-26 18:29:43,359 ERROR core.dispatcher: Exception occured in WerewolfState processor of games plugin.
Event: {'account': None, 'responses': [], 'source': u'shadowfire', 'state': u'offline', 'processed': False, 'time': datetime.datetime(2010, 6, 26, 16, 29, 43, 358270), 'identity': 2141, 'message': u'Ping timeout', 'type': u'state', 'public': True, 'channel': None, 'sender': {'nick': u'ex_mobile', 'connection': u'ex_mobile', 'id': u'ex_mobile'}}
Traceback (most recent call last):
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/core.py", line 29, in process
    processor.process(event)
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/__init__.py", line 137, in process
    method(event)
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/games.py", line 857, in state_change
    game.state_change(event)
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/games.py", line 839, in state_change
    nick in self.roles):
AttributeError: 'WerewolfGame' object has no attribute 'roles'

Revision history for this message
Stefano Rivera (stefanor) wrote :

Max: I just had a look at this. WTF is werewolf_games? I can't see how that allows one to have multiple games running at the same time...

Revision history for this message
Max Rabkin (max-rabkin) wrote : Re: [Bug 599026] Re: Werewolf state-tracking error

> Max: I just had a look at this. WTF is werewolf_games? I can't see how
> that allows one to have multiple games running at the same time...

The whole thing is a huge wtf. For one thing, I was somehow working
under the assumption that a processor would be instantiated
per-source. It should never have been merged,

--Max

Revision history for this message
Stefano Rivera (stefanor) wrote :

OK, so I am being sane then :) Yeah ibid review fails again (we must have had too much fun playing the game).

marcog (marco-gallotta)
Changed in ibid:
milestone: 0.1.1 → 0.1.2
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.