Skip to content

Commit 3b053ad

Browse files
committed
Added a return to stop an error occuring on no connection
1 parent 26eae26 commit 3b053ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

microscope/stages/ludl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def __init__(self, port: str, baudrate: int, timeout: float) -> None:
117117
answer = self.read_multiline()
118118
except:
119119
print("Unable to read configuration. Is Ludl connected?")
120+
return()
120121
# parse config responce which tells us what devices are present
121122
# on this controller.
122123

0 commit comments

Comments
 (0)