We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 908ba7e commit 1d4489dCopy full SHA for 1d4489d
files/st2_task_base.py
@@ -58,15 +58,15 @@ def parse_output(self, stdout):
58
print(stdout)
59
# try to parse stdout as JSON and return the parse result
60
return {'result': json.loads(stdout)}
61
- except (ValueError, TypeError):
+ except ValueError:
62
# JSON parsing failed, return the raw stdout string
63
return {'result': stdout}
64
65
def exec_cmd(self, cmd, error_msg):
66
result = {}
67
try:
68
stdout = subprocess.check_output(cmd,
69
- stderr=self.parse_output(subprocess.STDOUT),
+ stderr=subprocess.STDOUT,
70
env=self.env)
71
result.update(self.parse_output(stdout))
72
except subprocess.CalledProcessError as e:
0 commit comments