Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Allow empty album and/or artist #24

Merged
merged 1 commit into from
Feb 4, 2014
Merged

Allow empty album and/or artist #24

merged 1 commit into from
Feb 4, 2014

Conversation

Tilley
Copy link
Contributor

@Tilley Tilley commented Feb 3, 2014

I was getting errors like:

ERROR Unhandled exception in GMusicBackend (urn:uuid:[filtered]):
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 191, in _actor_loop
self.on_start()
File "/usr/local/lib/python2.7/dist-packages/mopidy_gmusic/actor.py", line 30, in on_start
self.library.refresh()
File "/usr/local/lib/python2.7/dist-packages/mopidy_gmusic/library.py", line 124, in refresh
self._to_mopidy_track(song)
File "/usr/local/lib/python2.7/dist-packages/mopidy_gmusic/library.py", line 207, in _to_mopidy_track
artists=[self._to_mopidy_artist(song)],
File "/usr/local/lib/python2.7/dist-packages/mopidy_gmusic/library.py", line 233, in _to_mopidy_artist
name = song['artist']
KeyError: u'artist'

hechtus added a commit that referenced this pull request Feb 4, 2014
Allow empty album and/or artist
@hechtus hechtus merged commit 85e8e0e into mopidy:master Feb 4, 2014
@hechtus
Copy link
Contributor

hechtus commented Feb 4, 2014

Surprising that album and artist may be absent. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants