fix(scan guard): only check strings

This commit is contained in:
wakonig_k 2024-11-15 20:45:49 +01:00
parent 55b2107f27
commit e2583edb5a

View File

@ -103,6 +103,8 @@ class ScanGuard:
for motor in motor_args:
if not motor:
continue
if not isinstance(motor, str):
continue
if motor not in self.device_manager.devices:
continue
if not self.device_manager.devices[motor].enabled: