diff --git a/setup.py b/setup.py index ccc60cf..b4cd609 100644 --- a/setup.py +++ b/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', diff --git a/thefuck/rules/no_command.py b/thefuck/rules/no_command.py index cf05837..0c9b9f4 100644 --- a/thefuck/rules/no_command.py +++ b/thefuck/rules/no_command.py @@ -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)