Small bugfixes; also, add a new machine to the remote executor pool.
[python_utils.git] / smart_home / registry.py
index 2d23981d00ad9aaafef04a45c0761bd4cdefd5af..ae57a735794e07723311685ca994d0a5f936d258 100644 (file)
@@ -60,7 +60,11 @@ class SmartHomeRegistry(object):
             if line == "":
                 continue
             logger.debug(f'SH-CONFIG> {line}')
-            (mac, name, keywords) = line.split(",")
+            try:
+                (mac, name, keywords) = line.split(",")
+            except ValueError:
+                logger.warning(f'SH-CONFIG> {line} is malformed?!')
+                continue
             mac = mac.strip()
             name = name.strip()
             keywords = keywords.strip()