Skip to content

Commit 213b8f1

Browse files
committed
fix subprocess
1 parent b0e060e commit 213b8f1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

codecov/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 subprocess.CalledProcessError, FileNotFoundError 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):

0 commit comments

Comments
 (0)