mirror of
https://github.com/beetbox/beets.git
synced 2025-12-10 10:32:34 +01:00
Fix #1041: play unicode logging crash
This commit is contained in:
parent
464f8cdc04
commit
72db4af7f8
2 changed files with 6 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue