

def edit(track):
    tracks_dict = get_tracks_dict_raw()
    if (track not in tracks_dict['tracks']):
        error("Track '{0}' does not exist.".format(track), exit=True)
    track_dict = tracks_dict['tracks'][track]
    update_track(track)
    for key in template_entry_order:
        pe = DEFAULT_TEMPLATE[key]
        pe.default = tracks_dict['tracks'][track][key]
        ret = safe_input(str(pe))
        if ret:
            pe.default = ret
            if (ret in [':{none}', 'None']):
                pe.default = None
        tracks_dict['tracks'][track][key] = pe.default
    tracks_dict['tracks'][track] = track_dict
    info("Saving '{0}' track.".format(track))
    write_tracks_dict_raw(tracks_dict)

dataset/ETHPy150Open ros-infrastructure/bloom/bloom/commands/git/config.py edit/VarMisuse@56/90 `track_dict`->`track`