surgeforward/911bot

Problem handling "Yes"

Opened this issue · 0 comments

Doesn't occur with no, but if you type yes, unprompted by an emergency, you get a stack trace and a different message than "I don't know how to handle that"

`[isEmergency] I had a problem handling "yes"

  File "/usr/local/lib/python2.7/site-packages/slackbot/dispatcher.py", line 55, in _dispatch_msg_handler
    func(Message(self._client, msg), *args)
  File "/app/bot/plugins.py", line 73, in isEmergency
    targetUserId = g_emergencies[requestingUser['id']]
KeyError: u'U2U75B25T'
`