Commit 96e905b4 authored by Jose Tiago Macara Coutinho's avatar Jose Tiago Macara Coutinho
Browse files

tango shutter: in STANDBY mode it is not possible to open shutter

Ideally, tango should throw an error. This fix is a workaround the
server bug
parent 437146e9
......@@ -26,6 +26,8 @@ class tango_shutter:
def open(self):
state = self.get_state()
if state == 'STANDBY':
raise RuntimeError('Cannot open shutter in STANDBY state')
if state == 'CLOSE':
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment