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

Commit

Permalink
Handle exceptions that don't have a returncode (#308)
Browse files Browse the repository at this point in the history
Fixes #307
  • Loading branch information
udim committed Dec 12, 2020
1 parent 58032a4 commit f4b116d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion codecov/__init__.py
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

0 comments on commit f4b116d

Please sign in to comment.