diff options
Diffstat (limited to 'alot/helper.py')
-rw-r--r-- | alot/helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/helper.py b/alot/helper.py index 05f7be66..b1fbaeca 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -165,7 +165,7 @@ def cmd_output(command_line): args = shlex.split(command_line.encode('utf-8', errors='ignore')) try: output = subprocess.check_output(args) - output = output.decode(urwid.util.detected_encoding, errors='replace') + output = string_decode(output, urwid.util.detected_encoding) except subprocess.CalledProcessError: return None except OSError: |