From a2a309a1d5d27d0612a8f0b24637b1111f1a3bdf Mon Sep 17 00:00:00 2001 From: dmc Date: Mon, 18 Sep 2023 11:31:17 +0200 Subject: [PATCH] fix complain about confirmed device on frappy() --- commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.py b/commands.py index af53158..b69553c 100644 --- a/commands.py +++ b/commands.py @@ -75,7 +75,7 @@ def frappy(*args, main=None, stick=None, addons=None, force=False): if addons is not None: raise TypeError('got multiple values for addons') addons = ','.join(alist) - if confirmed and confirmed != main and not force: + if confirmed and confirmed != main and main is not None and not force: session.log.warning('%r is plugged to the cryostat control rack', confirmed) session.log.warning('if you are sure, use frappy(..., force=True)', confirmed) raise TypeError('refuse to override plugged device')