diff --git a/devices.py b/devices.py index bc575b9..0ef30e6 100644 --- a/devices.py +++ b/devices.py @@ -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)