TypeError | Python 3.5.3: /usr/bin/python3 Sat Dec 2 02:41:22 2023 |
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 |
481 imgstrs = [] |
482 for pathtrack in pathtracks: |
=> 483 if pathtrack['album']['images']: |
484 image = pathtrack['album']['images'][0].get('url') |
485 artist = pathtrack['artists'][0].get('name') or '??' |
pathtrack = None |
TypeError: 'NoneType' object is not subscriptable
args =
("'NoneType' object is not subscriptable",)
with_traceback =
<built-in method with_traceback of TypeError object>