--> -->
 
 
TypeError
Python 3.5.3: /usr/bin/python3
Sun Jun 13 06:12:30 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 ()
    212         if artistdata:
    213             fals = getdata(urllib.parse.quote(id) + '/related-artists', 'artists')
=>  214             albums = getalbums(id, country)
    215 
    216     if artistdata:
albums undefined, getalbums = <function getalbums>, id = '1jcSJxePI4nTKpjHrWfBNd', country = None
 /var/www/html/artistprofile.cgi in getalbums(id='1jcSJxePI4nTKpjHrWfBNd', 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 = ['5GPY0YeuM308v8rKT1cUiM', '2Ar255POiI5DiVaUBDcRHi', '4Y8mo9w2khwUTYs4GaiSqA', '0Iy0w8AKlJeQPUcMDb4uB1', '4z8HQnx4PCX5TXdw8W7rJv', '5GznwEfqIyDK9GtWuSuvEn', '7EORtXZlT4AjBtssozLt8q', '1sBxXdwJA96e5343TaiD8G', '5tlLQQfkmuaMznvGyyIQ0L', '5uSLHVvlTsYSYwTOPSTlQx', '1BachWBL5B5XcOtCSnaFdP', '3mkZqYhvbbsTi2R2vRFpg1', '2nw1qO1uvo7xJicQgwa3Md', '1ng5FhRIgNieEZQGAXNL0H', '2ye3VnIRsOIrJ8wMCnqwNH', '705OyDg8GJdo8zDcDIVDqf', '6mkRkdA9ibsmYDq0B2eNPW', '7LrPScd5u3cYYbdEENN85q', '4Iyy0HzWGm2hpEdEjiAOm7', '3YEWB7nRNPudr3Prx7Yb54']

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