From 1af1f7d958fcec70817962563ce1608d985c9a44 Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Mon, 7 Oct 2024 18:14:05 +0100 Subject: fix various exceptions from missing Qweechat code --- src/relay/network.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/relay') diff --git a/src/relay/network.py b/src/relay/network.py index b502ddd..b27edaa 100644 --- a/src/relay/network.py +++ b/src/relay/network.py @@ -247,6 +247,8 @@ class Network(GObject.GObject): def is_connected(self): """Return True if the socket is connected, False otherwise.""" + if self._socket is None: + return False return self._socket.is_connected() def is_ssl(self): -- cgit