Skip to content

The socket package has no sslerror module #36

Open
@Pantoofle

Description

@Pantoofle

raise socket.sslerror("Invalid SSL version '%s' requested for tls_version '%s'" % (self.ssl_version, self.tls_level))

The socket package has no sslerror module (see the doc here)
The ssl package has something close. Maybe there were a confusion between the two packages ?

So if an invalid ssl_version is given, the program crashes before raising the error.

Activity

piyueh

piyueh commented on Mar 25, 2022

@piyueh
Member

Yah, that's from Python 2's socket module and does not exist anymore in Python 3:
https://github.com/python/cpython/blob/8d21aa21f2cbc6d50aab3f420bb23be1d081dac4/Lib/socket.py#L67

PR's welcome!

added a commit that references this issue on Aug 6, 2024
23eca20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Participants

    @piyueh@Pantoofle

    Issue actions

      The socket package has no sslerror module · Issue #36 · jazzband/imaplib2