From df9eb450cef2b75da3f03c7f642d50d3315f202c Mon Sep 17 00:00:00 2001 From: jeffthibault Date: Thu, 28 Jul 2022 17:56:20 -0400 Subject: [PATCH] fix timeout assignment for ws open --- nostr/relay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nostr/relay.py b/nostr/relay.py index 01ac875..80fca7e 100644 --- a/nostr/relay.py +++ b/nostr/relay.py @@ -30,9 +30,9 @@ class Relay: self.ws = ws self.subscriptions = subscriptions - def open_websocket_connection(self, timeout=None) -> None: + def open_websocket_connection(self, timeout: int=None) -> None: if timeout != None: - self.ws.connect(self.url, timeout) + self.ws.connect(self.url, timeout=timeout) else: self.ws.connect(self.url)