Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
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
Handle exceptions that don't have a returncode
Fixes #307
  • Loading branch information
udim committed Dec 9, 2020
commit 35764dd770db18c5aeddccab6e72eb413e4e4214
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