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

Possibly clean up the receive code #197

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

Conversation

curtiscook
Copy link

Closing sockets are getting double logged at an error level due to #139, so thought I'd try to clean this code up a little bit by getting rid of the breaks, noops, and using exceptions as control flow

break
else:
try:
# BlockingIOError is a PY2 catchall that should not be caught
Copy link
Author

Choose a reason for hiding this comment

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

BlockingIOError was actually not getting reraised before, so I'm unsure if this is actually the correct intended behavior

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.

1 participant