diff --git a/clay/gp.py b/clay/gp.py index e67268b..6ccdac2 100644 --- a/clay/gp.py +++ b/clay/gp.py @@ -128,7 +128,7 @@ def __init__(self, source, data): self.artist_art_filename = sha1( self.artist_art_url.encode('utf-8') ).hexdigest() + u'.jpg' - self.explicit_rating = (int(data['explicitType'])) + self.explicit_rating = (int(data['explicitType'])) if 'explicitType' in data else 0 if self.rating == 5: gp.cached_liked_songs.add_liked_song(self)