winfried / HelpIM

*obsoleted* An chat-system for online psycho-social counselling
11 stars 3 forks source link

Bot crashes when there are no questionnaries #110

Closed pvdv closed 11 years ago

pvdv commented 12 years ago

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'

pvdv commented 12 years ago

Adding a questionaire to the setup data could be a workarround

pvdv commented 12 years ago

See this bug too: https://github.com/e-hulp/HelpIM/issues/126