mirror of
https://github.com/ivan-usov-org/bec.git
synced 2025-04-21 02:10:01 +02:00
fix(scan guard): only check strings
This commit is contained in:
parent
55b2107f27
commit
e2583edb5a
@ -103,6 +103,8 @@ class ScanGuard:
|
|||||||
for motor in motor_args:
|
for motor in motor_args:
|
||||||
if not motor:
|
if not motor:
|
||||||
continue
|
continue
|
||||||
|
if not isinstance(motor, str):
|
||||||
|
continue
|
||||||
if motor not in self.device_manager.devices:
|
if motor not in self.device_manager.devices:
|
||||||
continue
|
continue
|
||||||
if not self.device_manager.devices[motor].enabled:
|
if not self.device_manager.devices[motor].enabled:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user