(e)
Translate OS and I/O exceptions to BASIC errors.
Translate OS and I/O exceptions to BASIC errors.
Translate OS and I / O exceptions to BASIC errors .
def handle_oserror(e):
    """Translate OS and I/O exceptions to BASIC errors."""
    try:
        basic_err = OS_ERROR[e.errno]
    except KeyError:
        logging.error(u'Unmapped environment exception: %s', e.errno)
        basic_err = error.DEVICE_IO_ERROR
    raise error.BASICError(basic_err)
def handle_oserror ( e ) : try : basic_err = OS_ERROR [ e . errno ] except KeyError : logging . error ( u'Unmapped environment exception: %s' , e . errno ) basic_err = error . DEVICE_IO_ERROR raise error . BASICError ( basic_err )