(message, name)
Catch and report environment errors.
Catch and report environment errors.
Catch and report environment errors .
def os_safe(message, name):
    """Catch and report environment errors."""
    print('... {} {} ... '.format(message, name), end='')
    try:
        yield
    except EnvironmentError as err:
        print(err)
    else:
        print('ok')
def os_safe ( message , name ) : print ( '... {} {} ... ' . format ( message , name ) , end = '' ) try : yield except EnvironmentError as err : print ( err ) else : print ( 'ok' )