Skip to content

Fix TypeError in SSLError handling in convert_stream_closed_error#6881

Merged
crusaderky merged 1 commit intodask:mainfrom
hendrikmakait:fix-ssl-error-handling
Aug 12, 2022
Merged

Fix TypeError in SSLError handling in convert_stream_closed_error#6881
crusaderky merged 1 commit intodask:mainfrom
hendrikmakait:fix-ssl-error-handling

Conversation

@hendrikmakait
Copy link
Copy Markdown
Member

@hendrikmakait hendrikmakait commented Aug 12, 2022

Closes #6875

  • Tests added / passed
  • Passes pre-commit run --all-files

exc = exc.real_error
if isinstance(exc, ssl.SSLError):
if "UNKNOWN_CA" in exc.reason:
if exc.reason and "UNKNOWN_CA" in exc.reason:
Copy link
Copy Markdown
Member Author

@hendrikmakait hendrikmakait Aug 12, 2022

Choose a reason for hiding this comment

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

Note: It looks like the typing information from typeshed is off: https://github.com/python/typeshed/blob/edc0ecd8579389cc6bb75b343e1001424009c09b/stdlib/ssl.pyi#L33

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could you raise the issue upstream?

@hendrikmakait
Copy link
Copy Markdown
Member Author

CI flake: #6582

@crusaderky crusaderky merged commit 9021d57 into dask:main Aug 12, 2022
gjoseph92 pushed a commit to gjoseph92/distributed that referenced this pull request Oct 31, 2022
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.

TypeError in distributed.comm.tcp.convert_stream_closed_error

2 participants