--> -->
 
 
TypeError
Python 3.5.3: /usr/bin/python3
Thu May 6 08:16:52 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/artistprofile.cgi in ()
    209         if artistdata:
    210             fals = getdata(urllib.parse.quote(id) + '/related-artists', 'artists')
=>  211             albums = getalbums(id, country)
    212 
    213     if artistdata:
albums undefined, getalbums = <function getalbums>, id = '6NiURMXtiCdFeHe3juJFzL', country = None
 /var/www/html/artistprofile.cgi in getalbums(id='6NiURMXtiCdFeHe3juJFzL', market=None)
     35     while ids:
     36         chunk = ids[:20]
=>   37         albums.extend(getdata('https://api.spotify.com/v1/albums?ids=%s' % ','.join(chunk), 'albums'))
     38         ids = ids[20:]
     39     for album in albums:
albums = [], albums.extend = <built-in method extend of list object>, global getdata = <function getdata>, ','.join undefined, chunk = ['55p0HEw4liZqiwWUY7HgCq']

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