Fix #1041: play unicode logging crash

This commit is contained in:
Adrian Sampson 2014-10-27 09:24:59 -07:00
parent 464f8cdc04
commit 72db4af7f8
2 changed files with 6 additions and 1 deletions

View file

@ -101,7 +101,10 @@ def play_music(lib, opts, args):
# Invoke the command and log the output.
output = util.command_output(command)
if output:
log.debug(u'Output of {0}: {1}'.format(command[0], output))
log.debug(u'Output of {0}: {1}'.format(
util.displayable_path(command[0]),
output.decode('utf8', 'ignore'),
))
ui.print_(u'Playing {0} {1}.'.format(len(selection), item_type))

View file

@ -53,6 +53,8 @@ Fixes:
* :doc:`/plugins/discogs`: Authenticate with the Discogs server. The plugin
now requires a Discogs account due to new API restrictions. Thanks to
:user:`multikatt`. :bug:`1027`, :bug:`1040`
* :doc:`/plugins/play`: Fix a potential crash when the command outputs special
characters. :bug:`1041`
1.3.8 (September 17, 2014)