Make PipeIOEventHandlerBase handle all input errors (while screaming)

This commit is contained in:
Kristóf Tóth 2019-05-12 22:28:31 +02:00
parent fc5124afb0
commit 78d70f2f8b

View File

@ -41,7 +41,10 @@ class CallbackPipeIOServer(PipeIOServer):
self.callback = callback
def handle_message(self, message):
try:
self.callback(message)
except: # pylint: disable=bare-except
LOG.exception('Failed to handle message %s from pipe %s!', message, self.in_pipe)
class PipeIOEventHandler(PipeIOEventHandlerBase):