--> -->
 
 
TypeError
Python 3.5.3: /usr/bin/python3
Thu May 6 06:29:21 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 = '7hWjGsG5FQrErvwzVv7qNG', country = None
 /var/www/html/artistprofile.cgi in getalbums(id='7hWjGsG5FQrErvwzVv7qNG', 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 = ['6Kdx2ouZF7S28tNvwNIiEF', '3r14acRZnUY4hSEJXvbBt8', '72A7anZJ5Snw216NbHiyvR', '0IYg9t5ET0HhEkTpEUI41F', '6QtljfeTunGgNEMRKirJBm', '7zUMNsOy9kypiG9jQtJvSz']

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