Better error message when try_to_run command fails by takluyver · Pull Request #201 · codecov/codecov-python · GitHub
Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Better error message when try_to_run command fails#201

Merged
thomasrockhu merged 1 commit into
codecov:masterfrom
takluyver:patch-1
Jun 7, 2019
Merged

Better error message when try_to_run command fails#201
thomasrockhu merged 1 commit into
codecov:masterfrom
takluyver:patch-1

Conversation

@takluyver

Copy link
Copy Markdown
Contributor

The CalledProcessError object should always have a .output attribute, although it may be None, so the getattr() will never hit the fallback condition.

The logical or operator should use the fallback if e.output is either None or an empty string, because those are both false-y. Any other possible value will be shown.

The `CalledProcessError` object should always have a `.output` attribute, although it may be None, so the `getattr()` will never hit the fallback condition.

The logical `or` operator should use the fallback if `e.output` is either None or an empty string, because those are both false-y. Any other possible value will be shown.
@codecov

codecov Bot commented Jun 3, 2019

Copy link
Copy Markdown

@thomasrockhu thomasrockhu merged commit 3502fdd into codecov:master Jun 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants