Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Handle exceptions that don't have a returncode #308

Merged
merged 1 commit into from
Dec 12, 2020
Merged
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
6 changes: 5 additions & 1 deletion codecov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ def try_to_run(cmd, shell=False, cwd=None):
except Exception as e:
write(
" Error running `%s`: returncode=%s, output=%s"
% (cmd, e.returncode, str(getattr(e, "output", str(e))))
% (
cmd,
str(getattr(e, "returncode", None)),
str(getattr(e, "output", str(e))),
)
)
return None

Expand Down