Commits

Alexander Shorin committed 51fc718

Fix possible crush if MESSAGE variable is missed.

Comments (0)

Files changed (1)

xmppflask/routing.py

     def bind_to_environ(self, environ):
         return self.bind(event_type=environ.get('XMPP_EVENT'),
                          from_jid=environ.get('XMPP_JID'),
-                         message=environ.get('MESSAGE'),
+                         message=environ.get('MESSAGE', ''),
                          type=environ.get('type'))
     
     def update(self):