Fix None if not config given (fall back to defaults)

pull/8/head
Nicolas Jouanin 2015-07-07 22:41:18 +02:00
rodzic ca3a693f0a
commit 9bedd5f892
8 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -65,7 +65,8 @@ class MQTTClient:
"""
self.logger = logging.getLogger(__name__)
self.config = _defaults
self.config.update(config)
if config is not None:
self.config.update(config)
if client_id is not None:
self.client_id = client_id
else:

Wyświetl plik