TypeError | Python 3.5.3: /usr/bin/python3 Mon Mar 27 13:23:05 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 |
478 imgstrs = [] |
479 for pathtrack in pathtracks: |
=> 480 if pathtrack['album']['images']: |
481 image = pathtrack['album']['images'][0].get('url') |
482 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>