def _on_message_touch(self, message, **kwargs): try: self.send(protocol.touch(message.id)) except Exception, e: self.close() self.trigger( event.ERROR, conn=self, error=protocol.SendError('failed to send TOUCH %s' % message.id, e), )