--> -->
 
 
TypeError
Python 3.5.3: /usr/bin/python3
Sat Jun 12 14:40:46 2021

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/playlistprofile.cgi in ()
    226             while queue:
    227                 chunk = queue[:chunksize]
=>  228                 for x in getdata('https://api.spotify.com/v1/%s?ids=%s' % (e, ','.join(chunk)), e):
    229                     if x:
    230                         index[e][x['id']] = x
x = {'album': {'album_type': 'single', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/0NIlUQVNBK8uysmGEggITQ'}, 'href': 'https://api.spotify.com/v1/artists/0NIlUQVNBK8uysmGEggITQ', 'id': '0NIlUQVNBK8uysmGEggITQ', 'name': 'Say Maranatha', 'type': 'artist', 'uri': 'spotify:artist:0NIlUQVNBK8uysmGEggITQ'}], 'available_markets': ['AD', 'AE', 'AG', 'AL', 'AM', 'AO', 'AR', 'AT', 'AU', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BN', ...], 'external_urls': {'spotify': 'https://open.spotify.com/album/0ZNegGOsRj0efXjXccIXpI'}, 'href': 'https://api.spotify.com/v1/albums/0ZNegGOsRj0efXjXccIXpI', 'id': '0ZNegGOsRj0efXjXccIXpI', 'images': [{'height': 640, 'url': 'https://i.scdn.co/image/ab67616d0000b2730915b66819d9760fa85d696e', 'width': 640}, {'height': 300, 'url': 'https://i.scdn.co/image/ab67616d00001e020915b66819d9760fa85d696e', 'width': 300}, {'height': 64, 'url': 'https://i.scdn.co/image/ab67616d000048510915b66819d9760fa85d696e', 'width': 64}], 'name': 'Merong Walang Hanggan', 'release_date': '2021-02-14', 'release_date_precision': 'day', ...}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/0NIlUQVNBK8uysmGEggITQ'}, 'href': 'https://api.spotify.com/v1/artists/0NIlUQVNBK8uysmGEggITQ', 'id': '0NIlUQVNBK8uysmGEggITQ', 'name': 'Say Maranatha', 'type': 'artist', 'uri': 'spotify:artist:0NIlUQVNBK8uysmGEggITQ'}], 'available_markets': ['AD', 'AE', 'AG', 'AL', 'AM', 'AO', 'AR', 'AT', 'AU', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BN', ...], 'disc_number': 1, 'duration_ms': 303428, 'explicit': False, 'external_ids': {'isrc': 'GBSMU9401489'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/5k2yWwm8W8uBKOo0mVjllh'}, 'href': 'https://api.spotify.com/v1/tracks/5k2yWwm8W8uBKOo0mVjllh', 'id': '5k2yWwm8W8uBKOo0mVjllh', ...}, getdata = <function getdata>, e = 'albums', ','.join = <built-in method join of str object>, chunk = ['7hFuvdA6QhN3rezI8RoHls', '6RadSyakYiRj65HRvokcPZ', '7b6wAcQqRepTZdhz9KBXMX', '5suzBrEecBflPs4kEhYqXF', '2sev6QGjgjVE5Xo4BGR3Bb', '5xUSsbHomj5jGYquS1JQmJ', '6jpmX4BLGbUDiFJyDDjLbt', '6ZZ88WbgUlyOfGinmYV2Hv', '12g9wtvD4pSoIcCUz4B0bX', '6VEbKmW07b7IQGLnEmldoY', '0VT0Q12aKPRsxi2GT9ccp1', '6Qc8IQLmky7WYpLVp4vAGq', '6apOsIQPLvJ3Q72JEtcbeR', '1QXyUE466jcN3q4uFJNqNF', '3nFT4Ln4Di9cNTM7ZTQtPQ', '3LZjfrss6wI4GYodEZlClV', '1wx1hPQjZv5aDj5c7dtqSd', '0ZNegGOsRj0efXjXccIXpI', '3XFIIwGyQYfmDjTTZpnPn2', '4trq8var4krQRDJqGch7F7']

TypeError: 'NoneType' object is not iterable
      args = ("'NoneType' object is not iterable",)
      with_traceback = <built-in method with_traceback of TypeError object>