diff --git a/boswatch/network/client.py b/boswatch/network/client.py index c7ba4d8..3e66b67 100644 --- a/boswatch/network/client.py +++ b/boswatch/network/client.py @@ -97,6 +97,8 @@ class TCPClient: received = str(self._sock.recv(1024), "utf-8") logging.debug("received: " + received) return received + except socket.timeout: + logging.warning("cannot receive - timeout after %s sec", self._timeout) except AttributeError: logging.error("cannot receive - no connection established") return False