Skip to content

Conversation

@louberger
Copy link
Member

error was not properly being caught in case Exception was not raised as an OSError - which is the case...

Signed-off-by: Lou Berger <lberger@labn.net>
self._s, self._ls = self._get_bound_sockets(port)
break
except OSError as error:
except Exception as error:
Copy link
Member

Choose a reason for hiding this comment

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

I believe this breaks the error handling logic. The code is accesing error.errno but not all classes have this value. error.errno is only in OSError. Want this break then?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure - I know the current code didn't work as expected -- I'll do a test to confirm this error path...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants