From 957c962294cde93c4c649ed18dedd16df071878d Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Sat, 13 Nov 2021 07:06:31 -0800 Subject: Small bugfixes; also, add a new machine to the remote executor pool. --- smart_home/registry.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'smart_home/registry.py') 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() -- cgit v1.3