From f8eaba6cf11801d50e8b3baf5bb642e21fd4ef94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Mon, 18 Nov 2019 16:38:55 +0100 Subject: [PATCH] fixed bug in subprocess.run --- scripts/phabtalk/apply_patch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/phabtalk/apply_patch.py b/scripts/phabtalk/apply_patch.py index f17c957..de9b80b 100755 --- a/scripts/phabtalk/apply_patch.py +++ b/scripts/phabtalk/apply_patch.py @@ -59,8 +59,7 @@ def _apply_patch(diff_id: str, conduit_token: str, host: str): cmd = 'arc patch --nobranch --no-ansi --diff "{}" --nocommit '\ '--conduit-token "{}" --conduit-uri "{}"'.format( diff_id, conduit_token, host ) - result = subprocess.run(cmd, capture_output=True, stderr=subprocess.STDOUT, - shell=True, text=True) + result = subprocess.run(cmd, capture_output=True, shell=True, text=True) if result.returncode != 0: print('ERROR: arc patch failed with error code {} and message:'.format(result.returncode)) print(result.stdout + result.stderr)