mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-22 22:31:55 +00:00
Make PipeIOEventHandlerBase handle all input errors (while screaming)
This commit is contained in:
parent
fc5124afb0
commit
78d70f2f8b
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user