projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various changes.
[python_utils.git]
/
smart_home
/
registry.py
diff --git
a/smart_home/registry.py
b/smart_home/registry.py
index 2d23981d00ad9aaafef04a45c0761bd4cdefd5af..ae57a735794e07723311685ca994d0a5f936d258 100644
(file)
--- 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}')
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()
mac = mac.strip()
name = name.strip()
keywords = keywords.strip()