Skip to content

Commit 1d4489d

Browse files
committed
Fixing tests.
1 parent 908ba7e commit 1d4489d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/st2_task_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ def parse_output(self, stdout):
5858
print(stdout)
5959
# try to parse stdout as JSON and return the parse result
6060
return {'result': json.loads(stdout)}
61-
except (ValueError, TypeError):
61+
except ValueError:
6262
# JSON parsing failed, return the raw stdout string
6363
return {'result': stdout}
6464

6565
def exec_cmd(self, cmd, error_msg):
6666
result = {}
6767
try:
6868
stdout = subprocess.check_output(cmd,
69-
stderr=self.parse_output(subprocess.STDOUT),
69+
stderr=subprocess.STDOUT,
7070
env=self.env)
7171
result.update(self.parse_output(stdout))
7272
except subprocess.CalledProcessError as e:

0 commit comments

Comments
 (0)