From: W. Trevor King Date: Thu, 13 May 2010 11:40:00 +0000 (-0400) Subject: Fix str() bug in hooke.ui.commandline.LocalExitCommand save msg. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a2d5c1487483bea634f108cbbc4af43acde1aae6;p=hooke.git Fix str() bug in hooke.ui.commandline.LocalExitCommand save msg. Old implemtation crashed if Playlist.name was None. --- diff --git a/hooke/ui/commandline.py b/hooke/ui/commandline.py index 57263db..8391197 100644 --- a/hooke/ui/commandline.py +++ b/hooke/ui/commandline.py @@ -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()