Skip to content

Commit 996515a

Browse files
committed
clarify cytation setup error message
1 parent 3b805fc commit 996515a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pylabrobot/plate_reading/biotek_backend.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,14 @@ def _get_device_info(self, cam):
791791
for feature in features:
792792
node_feature = PySpin.CValuePtr(feature)
793793
node_feature_name = node_feature.GetName()
794-
node_feature_value = node_feature.ToString() if PySpin.IsReadable(node_feature) else None
794+
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
795802
device_info[node_feature_name] = node_feature_value
796803

797804
return device_info

0 commit comments

Comments
 (0)