Switch early return so readYAML can continue with other files

This commit is contained in:
Mark Tinberg 2020-11-12 13:44:11 -06:00
parent 00e9b3d73f
commit a78df75074

View File

@ -48,7 +48,7 @@ def readYAMl(files):
data = yaml.safe_load(stream)
except yaml.YAMLError as exc:
print(exc)
return deviceTypes
continue
manufacturer = data['manufacturer']
data['manufacturer'] = {}
data['manufacturer']['name'] = manufacturer