--> -->
 
 
IndexError
Python 3.6.9: /usr/bin/python3
Wed Jul 1 20:41:33 2020

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /var/www/html/engenrepix.cgi in <module>()
    359 if not data:
    360     if genre:
=>  361         genrecentroid = [x for x in loadcentroidsflat('/home/glennm/playlists/data/genre_centroids.csv') if x['genre'] == genre][0]
    362         data = loadcentroidsflat(centroidfilename, genre, '/home/glennm/playlists/data/genre_examples/%s.json' % make_filename(genre))
    363     else:
genrecentroid undefined, x undefined, loadcentroidsflat = <function loadcentroidsflat>, genre = 'nc hip hop'

IndexError: list index out of range
      args = ('list index out of range',)
      with_traceback = <built-in method with_traceback of IndexError object>