8000 Fix subprocess by drazisil · Pull Request #239 · codecov/codecov-python · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Fix subprocess #239

Merged
merged 5 commits into from
Mar 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
8000
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### `2.0.19`

- fixed broken subprocess handling

### `2.0.18`

- fixed broken subprocess handling

### `2.0.17`

- fixed reported command injection vulnerability.
Expand Down
5 changes: 3 additions & 2 deletions codecov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
logging.captureWarnings(True)


version = VERSION = __version__ = '2.0.17'
version = VERSION = __version__ = '2.0.19'

COLOR = True

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


def run_python_coverage(args):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
from setuptools import setup

version = '2.0.17'
version = '2.0.19'
classifiers = ["Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Intended Audience :: Developers",
Expand Down
0