Skip to content

Commit

Permalink
fix issue #9
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Dec 8, 2023
1 parent a71b448 commit e6d5a97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Version 0.2.0 (in development)

* Fixed

- issue `#9 <https://github.com/MSLNZ/msl-equipment/issues/9>`_ - Missing functions
from Avantes AvaSpec DLL
- issue `#8 <https://github.com/MSLNZ/msl-equipment/issues/8>`_ - Invalid URL
for LXI XML identification document

Expand Down
6 changes: 5 additions & 1 deletion msl/equipment/resources/avantes/avaspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,11 @@ def __init__(self, record):
}

for key, value in functions.items():
attr = getattr(self.sdk, key)
try:
attr = getattr(self.sdk, key)
except AttributeError as e:
self.log_debug('%s: %s', self.__class__.__name__, e)
continue
attr.restype, attr.errcheck = value[:2]
attr.argtypes = [typ for _, typ in value[2]]

Expand Down

0 comments on commit e6d5a97

Please sign in to comment.