Skip to content

Commit 51e421e

Browse files
authored
Merge pull request codecov#239 from codecov/fix-subprocess
Fix subprocess
2 parents 0cba834 + 38f2303 commit 51e421e

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### `2.0.19`
2+
3+
- fixed broken subprocess handling
4+
5+
### `2.0.18`
6+
7+
- fixed broken subprocess handling
8+
19
### `2.0.17`
210

311
- fixed reported command injection vulnerability.

codecov/__init__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
logging.captureWarnings(True)
2727

2828

29-
version = VERSION = __version__ = '2.0.17'
29+
version = VERSION = __version__ = '2.0.19'
3030

3131
COLOR = True
3232

@@ -181,8 +181,9 @@ def check_output(cmd, **popen_args):
181181
def try_to_run(cmd, shell=False, cwd=None):
182182
try:
183183
return check_output(cmd, shell=shell, cwd=cwd)
184-
except subprocess.CalledProcessError as e:
184+
except Exception as e:
185185
write(' Error running `%s`: %s' % (cmd, e.output or str(e)))
186+
return None
186187

187188

188189
def run_python_coverage(args):

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
from setuptools import setup
33

4-
version = '2.0.17'
4+
version = '2.0.19'
55
classifiers = ["Development Status :: 5 - Production/Stable",
66
"Environment :: Plugins",
77
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)