ocelma / python-itunes

A simple python wrapper to access iTunes Store API http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html
158 stars 67 forks source link

Test for "artistId" before referencing #2

Closed paul-obrien closed 12 years ago

paul-obrien commented 12 years ago

I found when I searched for "The Godfather", the results returned as tracks. But they did not have an artistId on them, and thus it threw an error when the Track and Album classes attempted to reference the artistId. A check before referencing fixed the issue.