aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_workspace.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r--slack/slack_workspace.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py
index 51e4a89..d28083e 100644
--- a/slack/slack_workspace.py
+++ b/slack/slack_workspace.py
@@ -215,18 +215,15 @@ class SlackWorkspace:
async def _connect_ws(self, url: str):
proxy = Proxy()
- proxy_options = {
- "proxy_type": proxy.type,
- "http_proxy_host": proxy.address,
- "http_proxy_port": proxy.port,
- "http_proxy_auth": (proxy.username, proxy.password),
- "http_proxy_timeout": self.config.network_timeout.value,
- }
# TODO: Handle errors
self._ws = create_connection(
url,
self.config.network_timeout.value,
- **proxy_options,
+ proxy_type=proxy.type,
+ http_proxy_host=proxy.address,
+ http_proxy_port=proxy.port,
+ http_proxy_auth=(proxy.username, proxy.password),
+ http_proxy_timeout=self.config.network_timeout.value,
)
self._hook_ws_fd = weechat.hook_fd(