Prevent failure if device's sysinfo does not have a "feature" attribute. (#77)

This commit is contained in:
Sean Gollschewsky 2017-08-06 14:42:33 +01:00 committed by Teemu R
parent d851540380
commit a621f5329d

View File

@ -86,6 +86,9 @@ class SmartDevice(object):
:return: list of features
:rtype: list
"""
if "feature" not in self.sys_info:
return None
features = self.sys_info['feature'].split(':')
for feature in features: