(exc: OSError, cwd: str, cmd: List[str])
Interpret an OSError exc and raise the appropriate dbt exception.
Interpret an OSError exc and raise the appropriate dbt exception.
Interpret an OSError exc and raise the appropriate dbt exception .
def _interpret_oserror(exc: OSError, cwd: str, cmd: List[str]) -> NoReturn:
    """Interpret an OSError exc and raise the appropriate dbt exception.

    """
    if len(cmd) == 0:
        raise dbt.exceptions.CommandError(cwd, cmd)

    # all of these functions raise unconditionally
    if os.name == 'nt':
        _handle_windows_error(exc, cwd, cmd)
    else:
        _handle_posix_error(exc, cwd, cmd)

    # this should not be reachable, raise _something_ at least!
    raise dbt.exceptions.InternalException(
        'Unhandled exception in _interpret_oserror: {}'.format(exc)
    )
def _interpret_oserror ( exc : OSError , cwd : str , cmd : List [ str ] ) -> NoReturn : if len ( cmd ) == 0 : raise dbt . exceptions . CommandError ( cwd , cmd ) # all of these functions raise unconditionally if os . name == 'nt' : _handle_windows_error ( exc , cwd , cmd ) else : _handle_posix_error ( exc , cwd , cmd ) # this should not be reachable, raise _something_ at least! raise dbt . exceptions . InternalException ( 'Unhandled exception in _interpret_oserror: {}' . format ( exc ) )