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
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ class CallbackPipeIOServer(PipeIOServer):
self.callback = callback
def handle_message(self, message):
self.callback(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):