Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execute: don't crash if shell is stdout param #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sl33k
Copy link

@sl33k sl33k commented Sep 21, 2020

If the shell function was passed None or a file descriptor for stdout
redirection it would crash since stdout.readline() can't be called.
This commit adds an additional check to only print stdout lines from a
shell command if stdout is available.

If the shell function was passed None or a file descriptor for stdout
redirection it would crash since stdout.readline() can't be called.
This commit adds an additional check to only print stdout lines from a
shell command if stdout is available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant