TypeError | Python 3.5.3: /usr/bin/python3 Fri Jun 9 02:01:26 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 |
482 imgstrs = [] |
483 for pathtrack in pathtracks: |
=> 484 if pathtrack['album']['images']: |
485 image = pathtrack['album']['images'][0].get('url') |
486 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>