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

socket must be None, not shell_socket for default shell #1281

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

minrk
Copy link
Member

@minrk minrk commented Oct 22, 2024

process_shell_message has

assert socket is None

for the default subshell, so passing shell_socket here results in:

socket = self.shell_socket
...
assert socket is None
socket = self.shell_socket

@minrk minrk added the bug label Oct 22, 2024
@minrk
Copy link
Member Author

minrk commented Oct 22, 2024

alternative change would be to update the assert to assert socket in {self.shell_socket, None}, but this seems to match other calls to shell_main

Copy link
Collaborator

@ianthomas23 ianthomas23 left a comment

Choose a reason for hiding this comment

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

Thanks @minrk

@minrk minrk merged commit 2ca7992 into ipython:main Oct 22, 2024
28 of 32 checks passed
@minrk minrk deleted the shell_socket_none branch October 22, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants