def find_gist_by_id(github, _id):
    """Find a gist by _id"""
    dest = None
    for gist in github.iter_gists():
        if _id == gist.id or _id == gist.html_url:
            dest = gist
            break
    if dest is None:
        raise SystemExit('The gist ID or URL is not found, is it right?')
    return dest
