FrappyConfig.__call__: fix bug when main is None
This commit is contained in:
@ -393,7 +393,7 @@ class FrappyConfig(Device):
|
||||
else:
|
||||
self.show_state(False, to_consider)
|
||||
return
|
||||
if confirmed and confirmed.lower() != main.lower() and main not in (None, 'restart') and not force:
|
||||
if confirmed and main not in (None, 'restart') and confirmed.lower() != main.lower() and not force:
|
||||
session.log.warning('%r is plugged to the cryostat control rack', confirmed)
|
||||
cmd = all_info({'main': main, 'stick': stickarg, 'addons': addons}, '')[:-1] + ', force=True)'
|
||||
session.log.warning(f'if you are sure, use: %s', cmd)
|
||||
|
Reference in New Issue
Block a user