We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b805fc commit 996515aCopy full SHA for 996515a
pylabrobot/plate_reading/biotek_backend.py
@@ -791,7 +791,14 @@ def _get_device_info(self, cam):
791
for feature in features:
792
node_feature = PySpin.CValuePtr(feature)
793
node_feature_name = node_feature.GetName()
794
- node_feature_value = node_feature.ToString() if PySpin.IsReadable(node_feature) else None
+ try:
795
+ node_feature_value = node_feature.ToString() if PySpin.IsReadable(node_feature) else None
796
+ except Exception as e:
797
+ raise RuntimeError(
798
+ f"Got an error while reading feature {node_feature_name}. "
799
+ "Is the cytation in use by another notebook? "
800
+ f"Error: {str(e)}"
801
+ ) from e
802
device_info[node_feature_name] = node_feature_value
803
804
return device_info
0 commit comments