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

don't raise on EOPNOTSUPP #589

Merged
merged 1 commit into from
Mar 24, 2023
Merged

Conversation

sashankaryal
Copy link
Contributor

get_terminal_size() was failing because os.get_terminal_size() was raising EOPNOTSUPP when code was being executed in a different process spawned by node and stdout was piped through sockets. This PR adds this error code to the list of acceptable errors for which (80, 24) is returned.

@sashankaryal sashankaryal self-assigned this Mar 23, 2023
@sashankaryal sashankaryal requested review from brimoor and a team March 23, 2023 03:59
Copy link
Contributor

@brimoor brimoor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sashankaryal sashankaryal merged commit b967f0e into develop Mar 24, 2023
@sashankaryal sashankaryal deleted the bug/get-terminal-size-exception branch March 24, 2023 13:59
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

2 participants