def wrapper(): queuelogger.clear_bg_logging() try: res = method(*args) except: child_conn.send((True, traceback.format_exc())) child_conn.close() return child_conn.send((False, res)) child_conn.close()
def wrapper(): queuelogger.clear_bg_logging() try: res = coordinate_descent(adj_params, params, error_func) except: child_conn.send((True, traceback.format_exc())) child_conn.close() return child_conn.send((False, res)) child_conn.close()