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
Changes from 1 commit
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
Prev Previous commit
Exception
  • Loading branch information
drazisil committed Mar 17, 2020
commit 38f2303e37f3dd65f27e9821eb692d889f40c3dd
2 changes: 1 addition & 1 deletion codecov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ 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, FileNotFoundError) as e:
except Exception as e:
write(' Error running `%s`: %s' % (cmd, e.output or str(e)))
return None

Expand Down
0