def log_rmtree_error(func, arg, exc_info):
    logging.warning("Failure during '%s(%s)': %s", func.__name__, arg, exc_info[1])
Suited as onerror handler for (sh)util.rmtree() that logs a warning.
dataset/ETHPy150Open sosy-lab/benchexec/benchexec/util.py/log_rmtree_error