FrappyConfig.__call__: fix bug when main is None

This commit is contained in:
2024-11-18 16:53:44 +01:00
parent 4f1834105b
commit d06b552526

View File

@ -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)