Skip to content

Commit

Permalink
defensive checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ikb42 committed Dec 5, 2023
1 parent eca73dd commit e4b5f59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lightwave_smart/lightwave_smart.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,8 +857,11 @@ def get_featuresets(self, featuresets, devices, features):
if "virtualProductCode" in device:
new_featureset.virtual_product_code = device["virtualProductCode"]
new_featureset.firmware_version = device["firmwareVersion"]
new_featureset.manufacturer_code = device["manufacturerCode"]
new_featureset.serial = device["serial"]

if "manufacturerCode" in device:
new_featureset.manufacturer_code = device["manufacturerCode"]
if "serial" in device:
new_featureset.serial = device["serial"]

new_featureset.name = y["name"]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="lightwave_smart",
version="0.8.26",
version="0.8.27",
author="Bryan Blunt / Lightwave",
author_email="dev@lightwaverf.com",
description="Controls for Lightwave Smart Series (second generation) devices",
Expand Down

0 comments on commit e4b5f59

Please sign in to comment.