From 0a1e7e829dfde6ccb90500ed10a21ba4f8a5eb60 Mon Sep 17 00:00:00 2001 From: Hanne Moa Date: Wed, 3 Jul 2024 11:27:03 +0200 Subject: [PATCH] Raise NotConnectedError in UpdateHandler.check_connection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … instead of AttributeError when something nasty has happened to the session object. --- src/zinolib/controllers/zino1.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zinolib/controllers/zino1.py b/src/zinolib/controllers/zino1.py index f2e3847..cea3e88 100644 --- a/src/zinolib/controllers/zino1.py +++ b/src/zinolib/controllers/zino1.py @@ -157,6 +157,7 @@ def connect(self): self.check_connection() def check_connection(self): + self.manager._verify_session() if self.manager.session.push._sock.fileno() >= 0: self._connected = True return True