Skip to content

Exception thrown if library empty #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jrha opened this issue Aug 3, 2013 · 0 comments
Open

Exception thrown if library empty #2

jrha opened this issue Aug 3, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@jrha
Copy link
Owner

jrha commented Aug 3, 2013

If the library is empty, ssp will crash with something along the lines of:

Traceback (most recent call last):
  File "./player.py", line 239, in <module>
    p.play()
  File "./player.py", line 156, in play
    self.album = self.track.albumid # Set this so we can continue with an album we stumble across
AttributeError: 'NoneType' object has no attribute 'albumid'

Instead of this unhelpfulness, the user should be prompted to run ./update_library.py even though the README does state that it should be run before the player.

@ghost ghost assigned jrha Aug 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant