diff options
Diffstat (limited to 'smart_home/registry.py')
| -rw-r--r-- | smart_home/registry.py | 6 |
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() |
