mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-14 03:37:17 +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
|
self.callback = callback
|
||||||
|
|
||||||
def handle_message(self, message):
|
def handle_message(self, message):
|
||||||
|
try:
|
||||||
self.callback(message)
|
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):
|
class PipeIOEventHandler(PipeIOEventHandlerBase):
|
||||||
|
Loading…
Reference in New Issue
Block a user