From 4cbc5a9ec91782b9d1f5f63f47ee3ebdc4546ce4 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Mon, 18 Nov 2024 16:53:44 +0100 Subject: [PATCH] FrappyConfig.__call__: fix bug when main is None --- devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)