Skip to content
Browse files

Raise RuntimeError, not a string

  • Loading branch information...
1 parent 18e47f1 commit c41df5029c44e385cd8e12b45eb11a14f114a682 @recursify committed Feb 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mpd_controller.py
View
2 src/mpd_controller.py
@@ -136,7 +136,7 @@ def new_playlists_available(self):
def set_playlists(self):
playlists = self.get_playlists()
if len(playlists) < 1:
- raise "Error: No playlists exist currently. Please add some and try again"
+ raise RuntimeError("Error: No playlists exist currently. Please add some and try again")
self.playlists = playlists
def get_playlists(self):

0 comments on commit c41df50

Please sign in to comment.
Something went wrong with that request. Please try again.