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 f2457aed..c5820b8c 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -312,7 +312,7 @@ def call_cmd(cmdlist, stdin=None): out = subprocess.check_output(cmdlist) except subprocess.CalledProcessError as e: err = e.output - ret = -1 + ret = e.returncode except OSError as e: err = e.strerror ret = e.errno |