e-hulp/HelpIM — Issue #110: Bot crashes when there are no questionaries
Author: pvdv
Created: 2011-11-28 18:46:11+00:00
State: open

When a chat has no questionaries, you can start the bot, you can start an admin-chat with one2one chat, but when an client comes in the bot crashes and you cannot type anything. In the logfile you will see this:

(...)
"/usr/lib/pymodules/python2.6/pyxmpp/jabber/muc.py", line 996, in
__presence_available rs.process_available_presence(MucPresence(stanza))
File "/usr/lib/pymodules/python2.6/pyxmpp/jabber/muc.py", line 590, in
process_available_presence self.handler.user_joined(user,stanza) File
"/usr/local/lib/python2.6/dist-packages/helpim/rooms/bot.py", line 302,
in user_joined formEntry = room.clientJoined(user) File
"/usr/local/lib/python2.6/dist-packages/helpim/rooms/models.py", line
445, in clientJoined conversationFormEntry.conversation=self.chat
AttributeError: 'NoneType' object has no attribute 'conversation'