diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-02-01 18:59:17 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | 47be4d1f6ee818ca7f075e4c611793ab940e4dcc (patch) | |
tree | 596bcc58b8120171d6117a08fa0faa58d3fc30a1 /slack | |
parent | ee8f40f652b36cc5933555ad81b5f4ce6d08067b (diff) | |
download | wee-slack-47be4d1f6ee818ca7f075e4c611793ab940e4dcc.tar.gz |
Remove explicitly setting ca_certs for websocket-client
As far as I can see, this is no longer necessary with v0.36.0 or
later[0]. I assume anyone with new enough Python version to run this
will have at least this version.
[0]: https://github.com/websocket-client/websocket-client/commit/b614606b35a9b336875e46fe6d4e856392cb9b71
Diffstat (limited to 'slack')
-rw-r--r-- | slack/slack_workspace.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py index 57cd57c..c43e2c8 100644 --- a/slack/slack_workspace.py +++ b/slack/slack_workspace.py @@ -209,14 +209,6 @@ class SlackWorkspace: self.is_connected = True async def connect_ws(self, url: str): - sslopt_ca_certs = {} - if hasattr(ssl, "get_default_verify_paths") and callable( - ssl.get_default_verify_paths - ): - ssl_defaults = ssl.get_default_verify_paths() - if ssl_defaults.cafile is not None: - sslopt_ca_certs = {"ca_certs": ssl_defaults.cafile} - proxy = Proxy() proxy_options = { "proxy_type": proxy.type, @@ -229,7 +221,6 @@ class SlackWorkspace: self._ws = create_connection( url, self.config.network_timeout.value, - sslopt=sslopt_ca_certs, **proxy_options, ) |