mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-20 11:58:52 +00:00
#20 Fix UnicodeDecodeError
in no_command
This commit is contained in:
parent
1ed4e9615e
commit
a84671dd3b
2
setup.py
2
setup.py
@ -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',
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user