shutter close gives error when hutch is not searched
Please can you preserve this at ID11. There is no RunTimeError here - it is completely normal operation and the bliss version prevents us from putting shclose as part of a macro needed for safe movement of equipment.
id11eh3:bliss.git/bliss/controllers % git diff tango_shutter.py
diff --git a/bliss/controllers/tango_shutter.py b/bliss/controllers/tango_shutter.py
index 3550e36..3ef95dd 100644
--- a/bliss/controllers/tango_shutter.py
+++ b/bliss/controllers/tango_shutter.py
@@ -171,6 +171,8 @@ class TangoShutter(BaseShutter):
state = self.state
if state == TangoShutterState.CLOSED:
log_warning(self, f"{self.name} already closed, command ignored")
+ elif state == TangoShutterState.DISABLE:
+ log_warning(self, f"{self.name} disabled, command ignored")
elif state.name in ("OPEN", "RUNNING"):
try:
self.__control.close()