(fnname, *fnargs)
Execute OS function and handle errors.
Execute OS function and handle errors.
Execute OS function and handle errors .
def safe(fnname, *fnargs):
    """Execute OS function and handle errors."""
    try:
        return fnname(*fnargs)
    except EnvironmentError as e:
        handle_oserror(e)
def safe ( fnname , * fnargs ) : try : return fnname ( * fnargs ) except EnvironmentError as e : handle_oserror ( e )