This is my code for paginated_new_releases():
# mentor edit: code removed
And when I run the next statement i.e.
responses = paginated_new_releases(endpoint_request=get_new_releases,
url=URL_NEW_RELEASES,
access_token=token.get('access_token'),
offset=0, limit=20)
I got the following error which I could not resolved. Please enlighten. Thanks.
AttributeError Traceback (most recent call last)
Cell In[79], line 1
----> 1 responses = paginated_new_releases(endpoint_request=get_new_releases,
2 url=URL_NEW_RELEASES,
3 access_token=token.get('access_token'),
4 offset=0, limit=20)
Cell In[78], line 31, in paginated_new_releases(endpoint_request, url, access_token, offset, limit)
29 response = endpoint_request(**kwargs)
30 # Use extend() method to add the albums' items to the list of responses.
---> 31 responses.extend(response.get('albums').get('items'))
32 # Get the total number of the elements in albums and save it in the variable total_elements.
33 total_elements = response.get('albums').get('total')
AttributeError: 'NoneType' object has no attribute 'get'