🐛 Don't read returncode on async commands

This commit is contained in:
Gina Häußge committed 2019-03-29 17:43:45 +01:00
1 parent 79196eeaf7
commit d1914824c6
1 file changed
+2 -1
+2 -1
View File
@@ -29,4 +29,5 @@ def execute(command, cwd=None, evaluate_returncode=True, **kwargs):
if evaluate_returncode and p.returncode != 0:
raise ScriptError(p.returncode, p.stdout.text, p.stderr.text)
return p.returncode, p.stdout.text, p.stderr.text
if not do_async:
return p.returncode, p.stdout.text, p.stderr.text