#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
+1 -1
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)