Skip to content

Fix: Playwright fails if you suppress stderr (#1098)#1100

Merged
mxschmitt merged 2 commits into
microsoft:mainfrom
AlberLC:main
Jan 13, 2022
Merged

Fix: Playwright fails if you suppress stderr (#1098)#1100
mxschmitt merged 2 commits into
microsoft:mainfrom
AlberLC:main

Conversation

@AlberLC
Copy link
Copy Markdown
Contributor

@AlberLC AlberLC commented Jan 12, 2022

No description provided.

@mxschmitt
Copy link
Copy Markdown
Contributor

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