diff options
Diffstat (limited to 'alot/commands')
-rw-r--r-- | alot/commands/globals.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index c1e8d3cf..993397b5 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -280,10 +280,10 @@ class ExternalCommand(Command): ret = str(e) else: _, err = await proc.communicate(stdin.read() if stdin else None) - if proc.returncode == 0: - ret = 'success' - elif err: - ret = err.decode(urwid.util.detected_encoding) + if proc.returncode == 0: + ret = 'success' + elif err: + ret = err.decode(urwid.util.detected_encoding) else: with ui.paused(): try: |