From 4ae81bcfce38473758702326dfd421839f4e0693 Mon Sep 17 00:00:00 2001 From: Patrick Baus Date: Wed, 17 Jan 2024 01:07:30 +0100 Subject: [PATCH] Added MQTT error code -5 to the list of known errors --- managers.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/managers.py b/managers.py index 206c739..dd4f45c 100644 --- a/managers.py +++ b/managers.py @@ -131,6 +131,13 @@ def _log_mqtt_error_code(self, worker_name: str, error_code: str | int, previous self.__host, self.__port, ) + elif error_code == -5: + self.__logger.error( + "Worker (%s): Unknown host name of MQTT server (%s:%i). Retrying.", + worker_name, + self.__host, + self.__port, + ) elif error_code == "timed out": self.__logger.error( "Worker (%s): The connection to MQTT server (%s:%i) timed out. Retrying.",