From b58aaacecef532e8b5b53c77ec7dcb8fec23c36d Mon Sep 17 00:00:00 2001 From: Dima Tisnek Date: Mon, 25 Nov 2024 17:20:14 +0900 Subject: [PATCH] chore: don't merge, testing .open and .closed --- juju/client/connection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/juju/client/connection.py b/juju/client/connection.py index 88c31c2a..46312f25 100644 --- a/juju/client/connection.py +++ b/juju/client/connection.py @@ -93,6 +93,7 @@ def status(self): ) if stopped or not connection._ws.open: + raise BaseException("FIXME just testing not open") return self.ERROR # everything is fine! @@ -358,6 +359,7 @@ async def close(self, to_reconnect: bool = False): self._debug_log_task.cancel() if self._ws and not self._ws.closed: + raise BaseException("FIXME just testing two") await self._ws.close() if not to_reconnect: