responseData is None (coverlovin 2.0)

Bug #1210950 reported by Thorsten Sick
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CoverLovin
New
Undecided
Unassigned
Debian
New
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "./coverlovin.py", line 273, in <module>
    sys.exit(main())
  File "./coverlovin.py", line 260, in main
    urls = get_img_urls([artist,album], fileType=fileType, fileSize=fileSize, resultCount=resultCount)
  File "./coverlovin.py", line 114, in get_img_urls
    for result in results['responseData']['results']:
TypeError: 'NoneType' object has no attribute '__getitem__'

A fix in line 114 is to also check responseData:

    if results and "responseData" in results:
        for result in results['responseData']['results']:
            imgUrls.append(result['url'])

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.