Fix str() bug in hooke.ui.commandline.LocalExitCommand save msg.
authorW. Trevor King <wking@drexel.edu>
Thu, 13 May 2010 11:40:00 +0000 (07:40 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 13 May 2010 11:40:00 +0000 (07:40 -0400)
Old implemtation crashed if Playlist.name was None.

hooke/ui/commandline.py

index 57263dba9219a75a7e9c3379ab26988addd3fa87..8391197523bf3003ac27cbcd23dc029dca94a8df 100644 (file)
@@ -301,7 +301,7 @@ typing mistakes ;).
             default = True
             if len(not_saved) > 0:
                 msg = 'Unsaved playlists (%s).  %s' \
-                    % (', '.join(not_saved), msg)
+                    % (', '.join([str(p) for p in not_saved]), msg)
                 default = False
             outqueue.put(BooleanRequest(msg, default))
             result = inqueue.get()