Skip to content

feat: emit warning before raising on blocked calls#468

Open
miketheman wants to merge 1 commit intomainfrom
miketheman/emit-warning
Open

feat: emit warning before raising on blocked calls#468
miketheman wants to merge 1 commit intomainfrom
miketheman/emit-warning

Conversation

@miketheman
Copy link
Copy Markdown
Owner

SocketBlockedError and SocketConnectBlockedError now emit a warnings.warn() before raising. This makes blocked calls visible in test output even when the exception is swallowed by bare except Exception blocks in legacy code.

Closes #440

SocketBlockedError and SocketConnectBlockedError now emit a
warnings.warn() before raising. This makes blocked calls visible
in test output even when the exception is swallowed by bare
`except Exception` blocks in legacy code.

Closes #440

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for emitting warnings on socket use instead of failing?

1 participant