Skip to content

python_maint: ssl.wrap_socket removed#69

Open
acjohnson wants to merge 1 commit intoaszlig:masterfrom
acjohnson:ssl_wrap-fix
Open

python_maint: ssl.wrap_socket removed#69
acjohnson wants to merge 1 commit intoaszlig:masterfrom
acjohnson:ssl_wrap-fix

Conversation

@acjohnson
Copy link
Contributor

Fixes

Traceback (most recent call last):
  File "./hetznerctl", line 423, in <module>
    main()
  File "./hetznerctl", line 419, in main
    subcommand.execute(robot, parser, args)
  File "./hetznerctl", line 132, in execute
    for server in robot.servers:
  File "hetzner/robot.py", line 428, in __iter__
    return iter([Server(self.conn, s) for s in self.conn.get('/server')])
                                               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "hetzner/robot.py", line 405, in get
    return self.request('GET', path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "hetzner/robot.py", line 366, in request
    response = self._request(method, path, data, headers)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "hetzner/robot.py", line 302, in _request
    self.conn.request(method.upper(), path, data, headers)
  File "/usr/lib/python3.12/http/client.py", line 1336, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.12/http/client.py", line 1382, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.12/http/client.py", line 1331, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.12/http/client.py", line 1091, in _send_output
    self.send(msg)
  File "/usr/lib/python3.12/http/client.py", line 1035, in send
    self.connect()
  File "hetzner/util/http.py", line 66, in connect
    self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file,
                ^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'

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