diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2017-08-25 10:14:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-25 10:14:48 -0700 |
commit | 1e71185be3de7ee06e241db9d4eb535e4851e377 (patch) | |
tree | 79be3b904f08efce948bb29eb7052f48c0c94178 /alot | |
parent | 7e63ebf2978a80537794e1b088be8010a9b1f730 (diff) | |
parent | 222017927663f41105fc008f3fd81819a64e6eb8 (diff) |
Merge pull request #1138 from dcbaker/submit/fix-1137
commands/globals: Only set stdin to a pipe if there is data
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/globals.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 787ff450..565bd742 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -268,7 +268,7 @@ class ExternalCommand(Command): def thread_code(*_): try: proc = subprocess.Popen(self.cmdlist, shell=self.shell, - stdin=subprocess.PIPE, + stdin=subprocess.PIPE if stdin else None, stderr=subprocess.PIPE) except OSError as e: return str(e) |