summaryrefslogtreecommitdiff
path: root/smart_home/registry.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2021-11-13 07:06:31 -0800
committerScott Gasch <[email protected]>2021-11-13 07:06:31 -0800
commit957c962294cde93c4c649ed18dedd16df071878d (patch)
tree04207d711c01b33eb73b61782ed18aaa9d5e363d /smart_home/registry.py
parente5da1fa6bab9ea6bf4394facbb29f13cdc3daf9a (diff)
Small bugfixes; also, add a new machine to the remote executor pool.
Diffstat (limited to 'smart_home/registry.py')
-rw-r--r--smart_home/registry.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/smart_home/registry.py b/smart_home/registry.py
index 2d23981..ae57a73 100644
--- a/smart_home/registry.py
+++ b/smart_home/registry.py
@@ -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()