1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

#20 Fix UnicodeDecodeError in no_command

This commit is contained in:
nvbn 2015-04-18 21:46:17 +02:00
parent 1ed4e9615e
commit a84671dd3b
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(name='thefuck',
version=1.9,
version=1.10,
description="Magnificent app which corrects your previous console command",
author='Vladimir Iakovlev',
author_email='nvbn.rm@gmail.com',

View File

@ -10,7 +10,7 @@ def _get_output(command, settings):
name = command.script.split(' ')[command.script.startswith('sudo')]
check_script = '{} {}'.format(settings.command_not_found, name)
result = Popen(check_script, shell=True, stderr=PIPE)
return result.stderr.read().decode()
return result.stderr.read().decode('utf-8')
@wrap_settings(local_settings)