diff --git a/glances/exports/glances_mqtt.py b/glances/exports/glances_mqtt.py index 21a5e710..2aa5b8b2 100644 --- a/glances/exports/glances_mqtt.py +++ b/glances/exports/glances_mqtt.py @@ -57,7 +57,7 @@ class Export(GlancesExport): self.port = int(self.port) or 8883 self.topic = self.topic or 'glances' self.user = self.user or 'glances' - self.tls = (self.tls.lower() == 'true') + self.tls = (self.tls and self.tls.lower() == 'true') # Init the MQTT client self.client = self.init()