In this case we really want to catch all exceptions - we don't want to
crash the service if an unhandled exception occurs in the child
function, e.g. gbp.
Change-Id: I9eeee980188adca23c5c641e7a11caf8bdffbcc6
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
try:
# Func must be a callable without arguments
ret = func()
+ # pylint: disable=broad-except
except Exception as err:
ret_data_q.put(GbpChildBTError())
sys.exit(_RET_FORK_ERR)
+ # pylint: enable=broad-except
else:
ret_data_q.put(ret)
sys.exit(_RET_FORK_OK)