Skip to content

Conversation

AlberLC
Copy link
Contributor

@AlberLC AlberLC commented Jan 12, 2022

No description provided.

@mxschmitt
Copy link
Member

Hello, thank you for your contribution! I think it would be better to check if the stderr is closed, and if so, return None. Something like that:

        if sys.stderr.closed:
            return None

This should lead to the same behaviour but is more explicit.

@mxschmitt mxschmitt merged commit c16481b into microsoft:main Jan 13, 2022
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.

2 participants