X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=smart_home%2Fregistry.py;fp=smart_home%2Fregistry.py;h=ae57a735794e07723311685ca994d0a5f936d258;hb=957c962294cde93c4c649ed18dedd16df071878d;hp=2d23981d00ad9aaafef04a45c0761bd4cdefd5af;hpb=e5da1fa6bab9ea6bf4394facbb29f13cdc3daf9a;p=python_utils.git 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()